Archived
Dodaj pliki projektów.
This commit is contained in:
1 parent
92a6d55203
commit
715e2eb9c9
14 files changed
+467
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#include "EzWinAPIBuilders.h"
|
||||
|
||||
WNDCLASSEX EzCreateClass(LPCWSTR name, WNDPROC messageLoop, HINSTANCE instance, LPCWSTR classIcon, LPCWSTR cursor, HBRUSH backgroundBrush) {
|
||||
WNDCLASSEX wc;
|
||||
wc.style = 0;
|
||||
wc.cbSize = sizeof(WNDCLASSEX);
|
||||
wc.lpfnWndProc = messageLoop;
|
||||
wc.cbClsExtra = 0;
|
||||
wc.cbWndExtra = 0;
|
||||
wc.hInstance = instance;
|
||||
wc.hIcon = LoadIcon(NULL, classIcon);
|
||||
wc.hCursor = LoadCursor(NULL, cursor);
|
||||
wc.hbrBackground = backgroundBrush;
|
||||
wc.lpszMenuName = NULL;
|
||||
wc.lpszClassName = name;
|
||||
wc.cbWndExtra = 0;
|
||||
wc.hIconSm = LoadIcon(NULL, IDI_ERROR);
|
||||
return wc;
|
||||
}
|
||||
HWND EzCreateWindow(WNDCLASSEX windowClass, HINSTANCE instance, LPCWSTR windowTitle, DWORD windowStyles, int windowWidth, int windowHeight, HWND parent) {
|
||||
return CreateWindowEx(WS_EX_CLIENTEDGE, windowClass.lpszClassName, windowTitle, windowStyles, CW_USEDEFAULT, CW_USEDEFAULT, windowWidth, windowHeight, parent, NULL, instance, NULL);
|
||||
}
|
||||
Reference in new issue
Block a user