⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osdwinuser.h

📁 MiniWinOuterSM MiniWinOuterSM
💻 H
📖 第 1 页 / 共 5 页
字号:
    DWORD       itemData2;
    DWORD       dwLocaleId;
} COMPAREITEMSTRUCT,*LPCOMPAREITEMSTRUCT;

WINUSERAPI BOOL WINAPI GetMessage(LPMSG lpMsg,HWND hWnd,UINT wMsgFilterMin,UINT wMsgFilterMax);

WINUSERAPI BOOL WINAPI TranslateMessage(CONST MSG *lpMsg);

WINUSERAPI LONG WINAPI DispatchMessage(CONST MSG *lpMsg);

WINUSERAPI BOOL WINAPI SetMessageQueue(int cMessagesMax);

WINUSERAPI BOOL WINAPI PeekMessage(LPMSG lpMsg,HWND hWnd ,
    UINT wMsgFilterMin,UINT wMsgFilterMax,UINT wRemoveMsg);
/* PeekMessage() Options */
#define PM_NOREMOVE         0x0000
#define PM_REMOVE           0x0001
#define PM_NOYIELD          0x0002

WINUSERAPI LRESULT WINAPI SendMessage(HWND hWnd,UINT Msg,
						WPARAM wParam,LPARAM lParam);

WINUSERAPI BOOL WINAPI SendNotifyMessage(HWND hWnd,UINT Msg,
    WPARAM wParam,LPARAM lParam);

WINUSERAPI BOOL WINAPI PostMessage(HWND hWnd,UINT Msg,
	WPARAM wParam,LPARAM lParam);

#define HWND_BROADCAST  ((HWND)0xffff)

LRESULT CALLBACK DefWindowProc(HWND hWnd,UINT Msg,
    WPARAM wParam,LPARAM lParam);

//WINUSERAPI VOID WINAPI PostQuitMessage(int nExitCode);
WINUSERAPI LRESULT WINAPI CallWindowProc(WNDPROC lpPrevWndFunc,
    HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam);
WINUSERAPI UINT WINAPI GetDoubleClickTime(VOID);

WINUSERAPI BOOL WINAPI SetDoubleClickTime(UINT);

WINUSERAPI ATOM WINAPI RegisterClass(CONST WNDCLASS*lpWndClass);
WINUSERAPI BOOL WINAPI UnregisterClass(LPCSTR lpClassName,HINSTANCE hInstance);
WINUSERAPI BOOL WINAPI GetClassInfo(HINSTANCE hInstance,LPCSTR lpClassName,LPWNDCLASS lpWndClass);
#define CW_USEDEFAULT       ((int)0x80000000)
#define HWND_DESKTOP        ((HWND)0)

WINUSERAPI HWND WINAPI CreateWindowEx(DWORD dwExStyle,LPCSTR lpClassName,
    LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,
    HWND hWndParent , HMENU hMenu, HINSTANCE hInstance,LPVOID lpParam);
HWND CreateWindow(LPCTSTR wndClass,LPCTSTR winName,UINT dwStyle,INT x,INT y,
				  INT nWidth,INT nHeight,HWND hParent,HMENU hMenu,HINSTANCE hInst,LPVOID lParams);

/*#define CreateWindow(lpClassName,lpWindowName,dwStyle,x,y,\
nWidth,nHeight,hWndParent,hMenu,hInstance,lpParam)\
CreateWindowEx(0L,lpClassName,lpWindowName,dwStyle,x,y,\
nWidth,nHeight,hWndParent,hMenu,hInstance,lpParam)*/

WINUSERAPI BOOL WINAPI IsWindow(HWND hWnd);

WINUSERAPI BOOL WINAPI IsMenu(HMENU hMenu);
WINUSERAPI BOOL WINAPI IsChild(HWND hWndParent,HWND hWnd);

WINUSERAPI BOOL WINAPI DestroyWindow(HWND hWnd);

WINUSERAPI BOOL WINAPI ShowWindow(HWND hWnd,int nCmdShow);

WINUSERAPI BOOL WINAPI CloseWindow(HWND hWnd);

WINUSERAPI BOOL WINAPI MoveWindow(HWND hWnd,int X,int Y,
    int nWidth,int nHeight,BOOL bRepaint);

WINUSERAPI BOOL WINAPI SetWindowPos(HWND hWnd,HWND hWndInsertAfter ,
    int X,int Y,int cx,int cy,UINT uFlags);

WINUSERAPI BOOL WINAPI IsWindowVisible(HWND hWnd);

WINUSERAPI BOOL WINAPI IsIconic(HWND hWnd);

WINUSERAPI BOOL WINAPI AnyPopup(VOID);

WINUSERAPI BOOL WINAPI BringWindowToTop(HWND hWnd);

WINUSERAPI BOOL WINAPI IsZoomed(HWND hWnd);

/* SetWindowPos Flags  */
#define SWP_NOSIZE          0x0001
#define SWP_NOMOVE          0x0002
#define SWP_NOZORDER        0x0004
#define SWP_NOREDRAW        0x0008
#define SWP_NOACTIVATE      0x0010
#define SWP_FRAMECHANGED    0x0020  /* The frame changed: send WM_NCCALCSIZE */
#define SWP_SHOWWINDOW      0x0040
#define SWP_HIDEWINDOW      0x0080
#define SWP_NOCOPYBITS      0x0100
#define SWP_NOOWNERZORDER   0x0200  /* Don't do owner Z ordering */
#define SWP_NOSENDCHANGING  0x0400  /* Don't send WM_WINDOWPOSCHANGING */
#define SWP_NOCLIENTSIZE	0x0800 /* undocumented SWP flags - from SDK 3.1 */
#define SWP_NOCLIENTMOVE	0x1000 /* undocumented SWP flags - from SDK 3.1 */
#define SWP_STATECHANGED    0x8000 /* undocumented SWP flags - from SDK 3.1 */
#define SWP_DRAWFRAME       SWP_FRAMECHANGED
#define SWP_NOREPOSITION    SWP_NOOWNERZORDER
//#if(WINVER >= 0x0400)
#define SWP_DEFERERASE      0x2000
#define SWP_ASYNCWINDOWPOS  0x4000
//#endif  //WINVER >= 0x0400 


#define HWND_TOP        ((HWND)0)
#define HWND_BOTTOM     ((HWND)1)
#define HWND_TOPMOST    ((HWND)-1)
#define HWND_NOTOPMOST  ((HWND)-2)

typedef struct {
    DWORD style;
    DWORD dwExtendedStyle;
    WORD cdit;
    short x;
    short y;
    short cx;
    short cy;
} DLGTEMPLATE;
typedef DLGTEMPLATE *LPDLGTEMPLATEA;
typedef DLGTEMPLATE *LPDLGTEMPLATEW;
#ifdef UNICODE
typedef LPDLGTEMPLATEW LPDLGTEMPLATE;
#else
typedef LPDLGTEMPLATEA LPDLGTEMPLATE;
#endif // UNICODE
typedef CONST DLGTEMPLATE *LPCDLGTEMPLATEA;
typedef CONST DLGTEMPLATE *LPCDLGTEMPLATEW;
#ifdef UNICODE
typedef LPCDLGTEMPLATEW LPCDLGTEMPLATE;
#else
typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE;
#endif // UNICODE

/* 32 bit Dialog item template. */
typedef struct {
    DWORD style;
    DWORD dwExtendedStyle;
    short x;
    short y;
    short cx;
    short cy;
    WORD id;
} DLGITEMTEMPLATE;
typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATE;
typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATE;

#ifndef CCHDEVICENAME
#define CCHDEVICENAME 32
#endif

typedef struct tagMONITORINFO
{
    DWORD cbSize;
    RECT  rcMonitor;
    RECT  rcWork;
    DWORD dwFlags;
} MONITORINFO, *LPMONITORINFO;
#define MONITOR_DEFAULTTONULL       0x00000000
#define MONITOR_DEFAULTTOPRIMARY    0x00000001
#define MONITOR_DEFAULTTONEAREST    0x00000002

HMONITOR    WINAPI MonitorFromPoint(POINT,DWORD);
HMONITOR    WINAPI MonitorFromRect(LPRECT,DWORD);
HMONITOR    WINAPI MonitorFromWindow(HWND,DWORD);

typedef struct tagMONITORINFOEX
{   /* the 4 first entries are the same as MONITORINFO */
    DWORD	cbSize;	
    RECT	rcMonitor;
    RECT	rcWork;
    DWORD	dwFlags;
    CHAR    szDevice[CCHDEVICENAME];
} MONITORINFOEX, *LPMONITORINFOEX;

WINUSERAPI HWND WINAPI CreateDialogParam(HINSTANCE hInstance,
    LPCSTR lpTemplateName,HWND hWndParent ,
	DLGPROC lpDialogFunc,LPARAM dwInitParam);

WINUSERAPI HWND WINAPI CreateDialogIndirectParam(HINSTANCE hInstance,
    LPCDLGTEMPLATEA lpTemplate,HWND hWndParent,
    DLGPROC lpDialogFunc,LPARAM dwInitParam);

#define CreateDialog(hInstance, lpName, hWndParent, lpDialogFunc) \
CreateDialogParam(hInstance, lpName, hWndParent, lpDialogFunc, 0L)

#define CreateDialogIndirect(hInstance, lpTemplate, hWndParent, lpDialogFunc) \
CreateDialogIndirectParam(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)

WINUSERAPI int WINAPI DialogBoxParam(HINSTANCE hInstance,
    LPCSTR lpTemplateName,HWND hWndParent ,
    DLGPROC lpDialogFunc,LPARAM dwInitParam);

WINUSERAPI int WINAPI DialogBoxIndirectParam(HINSTANCE hInstance,
    LPCDLGTEMPLATEA hDialogTemplate,HWND hWndParent ,
    DLGPROC lpDialogFunc,LPARAM dwInitParam);

#define DialogBox(hInstance, lpTemplate, hWndParent, lpDialogFunc) \
DialogBoxParam(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)

#define DialogBoxIndirect(hInstance, lpTemplate, hWndParent, lpDialogFunc) \
DialogBoxIndirectParam(hInstance, lpTemplate, hWndParent, lpDialogFunc, 0L)

WINUSERAPI BOOL WINAPI EndDialog(HWND hDlg,int nResult);

WINUSERAPI HWND WINAPI GetDlgItem(HWND hDlg,int nIDDlgItem);

WINUSERAPI BOOL WINAPI SetDlgItemInt(HWND hDlg,int nIDDlgItem,
    UINT uValue,BOOL bSigned);

WINUSERAPI UINT WINAPI GetDlgItemInt(HWND hDlg,int nIDDlgItem,
    BOOL *lpTranslated,BOOL bSigned);

WINUSERAPI BOOL WINAPI SetDlgItemText(HWND hDlg,
    int nIDDlgItem,LPCSTR lpString);

WINUSERAPI UINT WINAPI GetDlgItemText(HWND hDlg,int nIDDlgItem,
    LPSTR lpString,int nMaxCount);

WINUSERAPI BOOL WINAPI CheckDlgButton(HWND hDlg,int nIDButton,UINT uCheck);

WINUSERAPI BOOL WINAPI CheckRadioButton(HWND hDlg,
    int nIDFirstButton,int nIDLastButton,int nIDCheckButton);

WINUSERAPI UINT WINAPI IsDlgButtonChecked(HWND hDlg,int nIDButton);

WINUSERAPI LONG WINAPI SendDlgItemMessage(HWND hDlg,
    int nIDDlgItem,UINT Msg,WPARAM wParam,LPARAM lParam);

WINUSERAPI HWND WINAPI GetNextDlgGroupItem(HWND hDlg,HWND hCtl,BOOL bPrevious);

WINUSERAPI HWND WINAPI GetNextDlgTabItem(HWND hDlg,HWND hCtl,BOOL bPrevious);

WINUSERAPI int WINAPI GetDlgCtrlID(HWND hWnd);

LRESULT CALLBACK DefDlgProc(HWND hDlg,UINT Msg,WPARAM wParam,LPARAM lParam);

#define DLGWINDOWEXTRA 30

WINUSERAPI HWND WINAPI SetFocus(HWND hWnd);

WINUSERAPI HWND WINAPI GetActiveWindow(VOID);

WINUSERAPI HWND WINAPI GetFocus(VOID);

WINUSERAPI HWND WINAPI GetCapture(VOID);

WINUSERAPI HWND WINAPI SetCapture(HWND hWnd);

WINUSERAPI BOOL WINAPI ReleaseCapture(VOID);

/* Windows Functions */

WINUSERAPI UINT WINAPI SetTimer(HWND hWnd ,UINT nIDEvent,UINT uElapse,TIMERPROC lpTimerFunc);

WINUSERAPI BOOL WINAPI KillTimer(HWND hWnd,UINT uIDEvent);

WINUSERAPI BOOL WINAPI IsWindowUnicode(HWND hWnd);

WINUSERAPI BOOL WINAPI EnableWindow(HWND hWnd,BOOL bEnable);

WINUSERAPI BOOL WINAPI IsWindowEnabled( HWND hWnd);

/* GetSystemMetrics() codes */

#define SM_CXSCREEN             0
#define SM_CYSCREEN             1
#define SM_CXVSCROLL            2
#define SM_CYHSCROLL            3
#define SM_CYCAPTION            4
#define SM_CXBORDER             5
#define SM_CYBORDER             6
#define SM_CXDLGFRAME           7
#define SM_CYDLGFRAME           8
#define SM_CYVTHUMB             9
#define SM_CXHTHUMB             10
#define SM_CXICON               11
#define SM_CYICON               12
#define SM_CXCURSOR             13
#define SM_CYCURSOR             14
#define SM_CYMENU               15
#define SM_CXFULLSCREEN         16
#define SM_CYFULLSCREEN         17
#define SM_CYKANJIWINDOW        18
#define SM_MOUSEPRESENT         19
#define SM_CYVSCROLL            20
#define SM_CXHSCROLL            21
#define SM_DEBUG                22
#define SM_SWAPBUTTON           23
#define SM_RESERVED1            24
#define SM_RESERVED2            25
#define SM_RESERVED3            26
#define SM_RESERVED4            27
#define SM_CXMIN                28
#define SM_CYMIN                29
#define SM_CXSIZE               30
#define SM_CYSIZE               31
#define SM_CXFRAME              32
#define SM_CYFRAME              33
#define SM_CXMINTRACK           34
#define SM_CYMINTRACK           35
#define SM_CXDOUBLECLK          36
#define SM_CYDOUBLECLK          37
#define SM_CXICONSPACING        38
#define SM_CYICONSPACING        39
#define SM_MENUDROPALIGNMENT    40
#define SM_PENWINDOWS           41
#define SM_DBCSENABLED          42
#define SM_CMOUSEBUTTONS        43

#define SM_CXFIXEDFRAME         SM_CXDLGFRAME  /* ;win40 name change */
#define SM_CYFIXEDFRAME         SM_CYDLGFRAME  /* ;win40 name change */
#define SM_CXSIZEFRAME          SM_CXFRAME     /* ;win40 name change */
#define SM_CYSIZEFRAME          SM_CYFRAME     /* ;win40 name change */

#define SM_SECURE               44
#define SM_CXEDGE               45
#define SM_CYEDGE               46
#define SM_CXMINSPACING         47
#define SM_CYMINSPACING         48
#define SM_CXSMICON             49
#define SM_CYSMICON             50
#define SM_CYSMCAPTION          51
#define SM_CXSMSIZE             52
#define SM_CYSMSIZE             53
#define SM_CXMENUSIZE           54
#define SM_CYMENUSIZE           55
#define SM_ARRANGE              56
#define SM_CXMINIMIZED          57
#define SM_CYMINIMIZED          58
#define SM_CXMAXTRACK           59
#define SM_CYMAXTRACK           60
#define SM_CXMAXIMIZED          61
#define SM_CYMAXIMIZED          62
#define SM_NETWORK              63
#define SM_CLEANBOOT            67
#define SM_CXDRAG               68
#define SM_CYDRAG               69

#define SM_SHOWSOUNDS           70

#define SM_CXMENUCHECK          71   /* Use instead of GetMenuCheckMarkDimensions()! */
#define SM_CYMENUCHECK          72
#define SM_SLOWMACHINE          73
#define SM_MIDEASTENABLED       74


#define SM_MOUSEWHEELPRESENT    75


#define SM_XVIRTUALSCREEN       76
#define SM_YVIRTUALSCREEN       77
#define SM_CXVIRTUALSCREEN      78
#define SM_CYVIRTUALSCREEN      79
#define SM_CMONITORS            80
#define SM_SAMEDISPLAYFORMAT    81


#define SM_CMETRICS             83

WINUSERAPI int WINAPI GetSystemMetrics(int nIndex);
WINUSERAPI HMENU WINAPI LoadMenu(HINSTANCE hInstance,LPCSTR lpMenuName);
WINUSERAPI HMENU WINAPI LoadMenuIndirect(CONST MENUTEMPLATE*lpMenuTemplate);

WINUSERAPI HMENU WINAPI GetMenu(HWND hWnd);

WINUSERAPI BOOL WINAPI SetMenu(HWND hWnd,HMENU hMenu);

WINUSERAPI BOOL WINAPI ChangeMenu(HMENU hMenu,UINT cmd,LPCSTR lpszNewItem,
		   UINT cmdInsert,UINT flags);

WINUSERAPI BOOL WINAPI HiliteMenuItem(HWND hWnd,HMENU hMenu,UINT uIDHiliteItem,UINT uHilite);

WINUSERAPI int WINAPI GetMenuString(HMENU hMenu,UINT uIDItem,
					  LPSTR lpString,int nMaxCount,UINT uFlag);

WINUSERAPI UINT WINAPI GetMenuState(HMENU hMenu,UINT uId,UINT uFlags);

WINUSERAPI BOOL WINAPI DrawMenuBar(HWND hWnd);


WINUSERAPI HMENU WINAPI GetSystemMenu(HWND hWnd,BOOL bRevert);

WINUSERAPI HMENU WINAPI CreateMenu(VOID);

WINUSERAPI HMENU WINAPI CreatePopupMenu(VOID);

WINUSERAPI BOOL WINAPI DestroyMenu(HMENU hMenu);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -