📄 osdcontrol.h
字号:
#ifndef __OSD_CONTROL_H__
#define __OSD_CONTROL_H__
#include"osdwingdi.h"
#include"prgfx.h"
//#include"osddc.h"
#include"osdmessage.h"
#include"osdcommctrl.h"
#define WM_SYSTIMER 0x0118
typedef struct _SUBCLASSPROCS {
SUBCLASSPROC subproc;
UINT id;
DWORD ref;
struct _SUBCLASSPROCS *next;
} SUBCLASSPROCS, *LPSUBCLASSPROCS;
typedef struct
{
SUBCLASSPROCS *SubclassProcs;
SUBCLASSPROCS *stackpos;
WNDPROC origproc;
int running;
} SUBCLASS_INFO, *LPSUBCLASS_INFO;
/* combo box */
#define ID_CB_LISTBOX 1000
#define ID_CB_EDIT 1001
/* internal flags */
#define CBF_DROPPED 0x0001
#define CBF_BUTTONDOWN 0x0002
#define CBF_NOROLLUP 0x0004
#define CBF_MEASUREITEM 0x0008
#define CBF_FOCUSED 0x0010
#define CBF_CAPTURE 0x0020
#define CBF_EDIT 0x0040
#define CBF_NORESIZE 0x0080
#define CBF_NOTIFY 0x0100
#define CBF_NOREDRAW 0x0200
#define CBF_SELCHANGE 0x0400
#define CBF_NOEDITNOTIFY 0x1000
#define CBF_NOLBSELECT 0x2000 /* do not change current selection */
#define CBF_EUI 0x8000
/* combo state struct */
typedef struct
{
HWND self;
HWND owner;
UINT dwStyle;
HWND hWndEdit;
HWND hWndLBox;
UINT wState;
HFONT hFont;
RECT textRect;
RECT buttonRect;
RECT droppedRect;
INT droppedIndex;
INT fixedOwnerDrawHeight;
INT droppedWidth; /* last two are not used unless set */
INT editHeight; /* explicitly */
} HEADCOMBO,*LPHEADCOMBO;
/* Dialog info structure */
typedef struct
{
HWND hwndFocus; /* Current control with focus */
HFONT hUserFont; /* Dialog font */
HMENU hMenu; /* Dialog menu */
UINT xBaseUnit; /* Dialog units (depends on the font) */
UINT yBaseUnit;
INT idResult; /* EndDialog() result / default pushbutton ID */
UINT flags; /* EndDialog() called for this dialog */
HGLOBAL hDialogHeap;
} DIALOGINFO;
/* Tooltip icons */
#define IDI_TT_INFO_SM 22
#define IDI_TT_WARN_SM 25
#define IDI_TT_ERROR_SM 28
#define DF_END 0x0001
#define DF_OWNERENABLED 0x0002
/* offset of DIALOGINFO ptr in dialog extra bytes */
#define DWL_MINIWIN_DIALOGINFO (DWL_USER+sizeof(ULONG))
extern DIALOGINFO *DIALOG_get_info( HWND hwnd, BOOL create );
//extern void DIALOG_EnableOwner( HWND hOwner );
//extern BOOL DIALOG_DisableOwner( HWND hOwner );
//extern INT DIALOG_DoDialogBox( HWND hwnd, HWND owner );
int RemoveWindow(HWND hwin);//把hwin从其Parent的链表中删除,但不销毁窗口
BOOL WIN_IsWindowDrawable(HWND hwnd, BOOL icon );
ULONG WIN_SetStyle(HWND hwnd,ULONG set_bits,ULONG clear_bits );
int BeginDCUpdate(HDC hdc);
int EndDCUpdate(HDC hdc,LPRECT rc);
HBRUSH DEFWND_ControlColor( HDC hDC, UINT ctlType );
HWND *WIN_ListChildren( HWND hwnd );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -