📄 winlib.h
字号:
#define WIN_CS_DBLCLKS (8)#define WIN_CS_GLOBALCLASS (16384)#define WIN_CS_HREDRAW (2)#define WIN_CS_KEYCVTWINDOW (4)#define WIN_CS_NOCLOSE (512)#define WIN_CS_NOKEYCVT (256)#define WIN_CS_OWNDC (32)#define WIN_CS_PARENTDC (128)#define WIN_CS_SAVEBITS (2048)#define WIN_CS_VREDRAW (1)#define WIN_DLGWINDOWEXTRA (30)/* SetWindowPos, DeferWindowPos */#define WIN_SWP_NOACTIVATE (16)#define WIN_SWP_NOMOVE (2)#define WIN_SWP_NOZORDER (4)/* Ternary Raster Operations - BitBlt */#define WIN_SRCINVERT 0x00660046#define WIN_SRCAND 0x008800C6#define WIN_SRCCOPY 0x00CC0020#define WIN_SRCPAINT 0x00EE0086/* Binary Raster Operations */#define WIN_R2_COPYPEN (13)#define WIN_R2_MASKPEN (9)#define WIN_R2_MERGEPEN (15)#define WIN_R2_XORPEN (7)/* ShowWindow */#define WIN_SW_SHOWNORMAL (1)#define WIN_SW_SHOW (5)/* CombineRgn */#define WIN_RGN_OR (2)/* CreatePen, ExtCreatePen */#define WIN_PS_SOLID (0)#define WIN_PS_NULL (5)/* GetStockObject */#define WIN_NULL_BRUSH (5)/* thread priorities */#define WIN_THREAD_PRIORITY_NORMAL (0)#define WIN_THREAD_PRIORITY_HIGHEST (2)/* Virtual Key codes */#define WIN_VK_CAPITAL (20)#define WIN_VK_NUMLOCK (144)#define WIN_VK_SCROLL (145)#define WIN_VK_SHIFT (16)#define WIN_VK_CONTROL (17)#define WIN_VK_MENU (18)#define WIN_VK_LSHIFT (160)#define WIN_VK_RSHIFT (161)#define WIN_VK_LCONTROL (162)#define WIN_VK_RCONTROL (163)#define WIN_VK_LMENU (164)#define WIN_VK_RMENU (165)#define WIN_VK_F1 (112)#define WIN_VK_F2 (113)#define WIN_VK_F3 (114)#define WIN_VK_F4 (115)#define WIN_VK_F5 (116)#define WIN_VK_F6 (117)#define WIN_VK_F7 (118)#define WIN_VK_F8 (119)#define WIN_VK_F9 (120)#define WIN_VK_F10 (121)#define WIN_VK_F11 (122)#define WIN_VK_F12 (123)#define WIN_VK_LEFT (37)#define WIN_VK_RIGHT (39)#define WIN_VK_UP (38)#define WIN_VK_DOWN (40)#define WIN_VK_HOME (36)#define WIN_VK_END (35)#define WIN_VK_INSERT (45)#define WIN_VK_DELETE (46)#define WIN_VK_PRIOR (33)#define WIN_VK_NEXT (34)#define WIN_VK_ESCAPE (27)#define WIN_WM_CLOSE (16)#define WIN_WM_KEYDOWN (256)#define WIN_WM_KEYUP (257)#define WIN_WM_CHAR (258)#define WIN_WM_SYSKEYDOWN (260)#define WIN_WM_SYSKEYUP (261)#define WIN_WM_SYSCHAR (262)#define WIN_WM_LBUTTONDOWN (513)#define WIN_WM_LBUTTONUP (514)#define WIN_WM_RBUTTONDOWN (516)#define WIN_WM_RBUTTONUP (517)#define WIN_WM_MBUTTONDOWN (519)#define WIN_WM_MBUTTONUP (520)#define WIN_WM_MOUSEMOVE (512)#define WIN_WM_PAINT (15)#define WIN_WM_SETCURSOR (32)#define WIN_WM_QUIT (18)#define WIN_WS_CAPTION (0xc00000L)#define WIN_WS_MINIMIZEBOX (0x20000L)#define WIN_WS_OVERLAPPED (0L)#define WIN_WS_SYSMENU (0x80000L)#define WIN_GWL_USERDATA (-6)#define WIN_GWL_HINSTANCE (-21)#define WIN_HTCLIENT (1)/* Mouse messages */#define WIN_MK_LBUTTON (1)#define WIN_MK_MBUTTON (16)#define WIN_MK_RBUTTON (2)#ifdef __STDC__WIN_BOOL win_Arc (WIN_HDC hdc, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7);WIN_HDC win_BeginPaint (WIN_HWND hWnd, WIN_LPPAINTSTRUCT lpPaint);WIN_BOOL win_BitBlt (WIN_HDC hdc1, int arg0, int arg1, int arg2, int arg3, WIN_HDC hdc2, int arg4, int arg5, WIN_DWORD dwd);int win_CombineRgn (WIN_HRGN rgn0, WIN_HRGN rgn1, WIN_HRGN rgn2, int arg0);WIN_HBITMAP win_CreateCompatibleBitmap (WIN_HDC hdc, int arg0, int arg1);WIN_HDC win_CreateCompatibleDC (WIN_HDC hdc);WIN_HBITMAP win_CreateBitmap (int arg0, int arg1, WIN_UINT uint0, WIN_UINT uint1, const void * pVoid);WIN_HDC win_CreateDIBitmap (WIN_HDC hdc, const WIN_BITMAPINFOHEADER * pBmpInfoHdr, WIN_DWORD dwd, const void * pVoid, const WIN_BITMAPINFO * pBmpInfo, WIN_UINT arg);WIN_HPEN win_CreatePen (int arg0, int arg1, WIN_COLORREF clrRef);WIN_HRGN win_CreateRectRgn (int arg0, int arg1, int arg2, int arg3);WIN_HBRUSH win_CreateSolidBrush (WIN_COLORREF colorRef);WIN_HANDLE win_CreateThread (WIN_LPSECURITY_ATTRIBUTES lpThreadAttributes, WIN_DWORD stack, WIN_LPTHREAD_START_ROUTINE start, WIN_LPVOID param, WIN_DWORD flags, WIN_LPDWORD threadId);WIN_HWND win_CreateWindowExA (WIN_DWORD dwExStyle, WIN_LPCSTR lpClassName, WIN_LPCSTR lpWindowName, WIN_DWORD dwStyle, int X, int Y, int nWidth, int nHeight, WIN_HWND hWndParent, WIN_HMENU hMenu, WIN_HINSTANCE hInstance, WIN_LPVOID lpParam);WIN_HWND win_CreateWindowExW (WIN_DWORD dwExStyle, WIN_LPCWSTR lpClassName, WIN_LPCWSTR lpWindowName, WIN_DWORD dwStyle, int X, int Y, int nWidth, int nHeight, WIN_HWND hWndParent, WIN_HMENU hMenu, WIN_HINSTANCE hInstance, WIN_LPVOID lpParam);WIN_LRESULT win_DefWindowProc (WIN_HWND hWnd, WIN_UINT msg, WIN_WPARAM wParam, WIN_LPARAM lParam);WIN_BOOL win_DeleteDC (WIN_HDC hdc);WIN_BOOL win_DeleteObject (WIN_HGDIOBJ hgdiobj);WIN_BOOL win_DestroyWindow (WIN_HWND hWnd);WIN_LONG win_DispatchMessage (const WIN_MSG * lpMsg);WIN_BOOL win_Ellipse (WIN_HDC hdc, int arg0, int arg1, int arg2, int arg3);WIN_BOOL win_EndPaint (WIN_HWND hWnd, const WIN_PAINTSTRUCT * lpPaint);int win_FillRect (WIN_HDC hdc, const WIN_RECT * lprc, WIN_HBRUSH hbr);WIN_HWND win_FindWindow (WIN_LPCTSTR lpClassName, WIN_LPCTSTR lpWindowName);WIN_BOOL win_GetClientRect (WIN_HWND hWnd, WIN_LPRECT lpRect);WIN_HDC win_GetDC (WIN_HWND hWnd);WIN_SHORT win_GetKeyState(int nVirtKey);WIN_COLORREF win_GetPixel (WIN_HDC hdc, int arg0, int arg1);WIN_BOOL win_GetMessage (WIN_LPMSG lpMsg, WIN_HWND hWnd, WIN_UINT wMsgFilterMin, WIN_UINT wMsgFilterMax);WIN_LONG win_GetWindowLong (WIN_HWND hWnd, int nIndex);WIN_HGDIOBJ win_GetStockObject (int arg0);WIN_BOOL win_LineTo (WIN_HDC hdc, int arg0, int arg1);WIN_HICON win_LoadIcon (WIN_HINSTANCE hInstance, WIN_LPCSTR lpIconName);WIN_UINT win_MapVirtualKey (WIN_UINT uCode, WIN_UINT uMapType);WIN_BOOL win_MoveToEx (WIN_HDC hdc, int arg0, int arg1, WIN_LPPOINT pt);WIN_BOOL win_Pie (WIN_HDC hdc, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7);WIN_BOOL win_Polygon (WIN_HDC hdc, const WIN_POINT * pt, int arg);WIN_BOOL win_PostMessage (WIN_HWND hWnd, WIN_UINT msg, WIN_WPARAM wParam, WIN_LPARAM lParam);WIN_BOOL win_Rectangle (WIN_HDC hDC, int arg0, int arg1, int arg2, int arg3); WIN_ATOM win_RegisterClass (const WIN_WNDCLASS * lpWndClass);int win_ReleaseDC (WIN_HWND hWnd, WIN_HDC hDC);int win_SelectClipRgn (WIN_HDC hDC, WIN_HRGN hRgn);WIN_HGDIOBJ win_SelectObject (WIN_HDC hdc, WIN_HGDIOBJ obj);WIN_COLORREF win_SetBkColor (WIN_HDC hdc, WIN_COLORREF colorRef);WIN_HCURSOR win_SetCursor (WIN_HCURSOR hCursor);WIN_BOOL win_SetForegroundWindow(WIN_HWND hWnd);WIN_COLORREF win_SetPixel (WIN_HDC hdc, int arg1, int arg2, WIN_COLORREF colorRef);int win_SetROP2(WIN_HDC hdc, int fnDrawMode);WIN_COLORREF win_SetTextColor (WIN_HDC hdc, WIN_COLORREF colorRef);WIN_BOOL win_SetThreadPriority(WIN_HANDLE hThread, int nPriority);WIN_LONG win_SetWindowLong (WIN_HWND hWnd, int nIndex, WIN_LONG dwNewLong);WIN_BOOL win_SetWindowPos (WIN_HWND hWnd, WIN_HWND hWndInsertAfter, int X, int Y, int cx, int cy, WIN_UINT uFlags);WIN_BOOL win_ShowWindow (WIN_HWND hWnd, int nCmdShow);void win_Sleep (WIN_DWORD dwMilliseconds);WIN_BOOL win_StretchBlt (WIN_HDC hdc1, int arg0, int arg1, int arg2, int arg3, WIN_HDC hdc2, int arg4, int arg5, int arg6, int arg7, WIN_DWORD dwd);WIN_BOOL win_TranslateMessage (const WIN_MSG *lpMsg);void win_InitializeCriticalSection (WIN_LPCRITICAL_SECTION lpCriticalSection);void win_EnterCriticalSection (WIN_LPCRITICAL_SECTION lpCriticalSection);void win_LeaveCriticalSection (WIN_LPCRITICAL_SECTION lpCriticalSection);void win_DeleteCriticalSection (WIN_LPCRITICAL_SECTION lpCriticalSection);#elseWIN_BOOL win_Arc ();WIN_HDC win_BeginPaint ();WIN_BOOL win_BitBlt ();int win_CombineRgn ();WIN_HBITMAP win_CreateCompatibleBitmap ();WIN_HDC win_CreateCompatibleDC ();WIN_HBITMAP win_CreateBitmap ();WIN_HDC win_CreateDIBitmap ();WIN_HPEN win_CreatePen ();WIN_HRGN win_CreateRectRgn ();WIN_HBRUSH win_CreateSolidBrush ();WIN_HANDLE win_CreateThread ();WIN_HWND win_CreateWindowExA ();WIN_HWND win_CreateWindowExW ();WIN_LRESULT win_DefWindowProc ();WIN_BOOL win_DeleteDC ();WIN_BOOL win_DeleteObject ();WIN_BOOL win_DestroyWindow ();WIN_LONG win_DispatchMessage ();WIN_BOOL win_Ellipse ();WIN_BOOL win_EndPaint ();int win_FillRect ();WIN_HWND win_FindWindow ();WIN_BOOL win_GetClientRect ();WIN_HDC win_GetDC ();WIN_SHORT win_GetKeyState();WIN_COLORREF win_GetPixel ();WIN_BOOL win_GetMessage ();WIN_LONG win_GetWindowLong ();WIN_HGDIOBJ win_GetStockObject ();WIN_BOOL win_LineTo ();WIN_HICON win_LoadIcon ();WIN_UINT win_MapVirtualKey ();WIN_BOOL win_MoveToEx ();WIN_BOOL win_Pie ();WIN_BOOL win_Polygon ();WIN_BOOL win_PostMessage ();WIN_BOOL win_Rectangle (); WIN_ATOM win_RegisterClass ();int win_ReleaseDC ();int win_SelectClipRgn ();WIN_HGDIOBJ win_SelectObject ();WIN_COLORREF win_SetBkColor ();WIN_HCURSOR win_SetCursor ();WIN_BOOL win_SetForegroundWindow();WIN_COLORREF win_SetPixel ();int win_SetROP2();WIN_COLORREF win_SetTextColor ();WIN_BOOL win_SetThreadPriority();WIN_LONG win_SetWindowLong ();WIN_BOOL win_SetWindowPos ();WIN_BOOL win_ShowWindow ();void win_Sleep ();WIN_BOOL win_StretchBlt ();WIN_BOOL win_TranslateMessage (CONST MSG *lpMsg);void win_InitializeCriticalSection ();void win_EnterCriticalSection ();void win_LeaveCriticalSection ();void win_DeleteCriticalSection ();#endif /* __STDC__ *//* used to create linker dependancy on ugl_winLib.o */void uglWinLibInit (void);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -