22 lines
632 B
C++
22 lines
632 B
C++
#pragma once
|
|
#include "Window.h"
|
|
#include "BorderlessWindow.h"
|
|
#include "LayeredWindow.h"
|
|
|
|
namespace ezui {
|
|
/// <summary>
|
|
/// 弹出式窗口(失去焦点窗口将会关闭) 一般用于做右键菜单等等
|
|
/// </summary>
|
|
class UI_EXPORT PopupWindow :public LayeredWindow {
|
|
private:
|
|
Control* m_ownerCtl = NULL;
|
|
protected:
|
|
virtual void OnKillFocus(HWND hWnd) override;
|
|
public:
|
|
PopupWindow(int width, int height, HWND ownerHwnd);
|
|
PopupWindow(int width, int height, Control* ownerCtl = NULL);
|
|
virtual void Show()override;
|
|
virtual int ShowModal(bool disableOnwer = false)override;
|
|
virtual ~PopupWindow();
|
|
};
|
|
}; |