OfficeAssistant_Win10/OfficeAssistant_msvc/qminiblink.h

31 lines
580 B
C
Raw Normal View History

2023-07-30 18:57:41 +08:00
#pragma once
#include <QWidget>
#include "ui_qminiblink.h"
#include "wke.h"
#include <Windows.h>
#include <CommCtrl.h>
class QMiniBlink : public QWidget
{
Q_OBJECT
public:
2023-07-31 19:06:37 +08:00
QMiniBlink(QWidget *parent = nullptr);
2023-07-30 18:57:41 +08:00
~QMiniBlink();
void init();
2023-07-31 19:06:37 +08:00
2023-07-30 18:57:41 +08:00
void autojustWebViewSize();
2023-07-31 19:06:37 +08:00
QString firstUrl;
2023-07-30 18:57:41 +08:00
public slots:
2023-07-31 19:06:37 +08:00
void ondestroy();
2023-07-30 18:57:41 +08:00
void switchUrl(QString url);
private:
Ui::QMiniBlink ui;
wkeWebView wkeView;
2023-07-31 19:06:37 +08:00
QWidget *parent;
int w;
int h;
2023-07-30 18:57:41 +08:00
static LRESULT CALLBACK subClassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData);
};