1 #ifndef WINDOW_CLASSIST_CLASS
2 #define WINDOW_CLASSIST_CLASS
70 LRESULT CALLBACK window_procedure(HWND hWnd, UINT message,
71 WPARAM wParam, LPARAM lParam)
76 int identifier, event;
77 identifier = LOWORD(wParam);
78 event = HIWORD(wParam);
79 return DefWindowProc(hWnd, message, wParam, lParam);
85 hdc = BeginPaint(hWnd, &ps);
95 return DefWindowProc(hWnd, message, wParam, lParam);
106 wcex.cbSize =
sizeof(WNDCLASSEX);
108 wcex.style = CS_HREDRAW | CS_VREDRAW;
109 wcex.lpfnWndProc = (WNDPROC)window_procedure;
114 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
115 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
116 wcex.lpszMenuName = 0;
117 basis::to_unicode_persist(temp_class, name);
118 wcex.lpszClassName = temp_class;
121 return RegisterClassEx(&wcex);
127 register_class(class_name);
128 window_handle f_window = CreateWindow(basis::to_unicode_temp(class_name),
129 basis::to_unicode_temp(window_title), WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,
131 ShowWindow(f_window, SW_HIDE);
132 UpdateWindow(f_window);
Provides a dynamically resizable ASCII character string.
#define formal(parameter)
This macro just eats what it's passed; it marks unused formal parameters.
#define NULL_POINTER
The value representing a pointer to nothing.
Implements an application lock to ensure only one is running at once.
window_handle create_simplistic_window(const basis::astring &formal(window_title), const basis::astring &formal(class_name))
void whack_simplistic_window(window_handle formal(f_window))
Support for unicode builds.
Aids in achievement of platform independence.
#define GET_INSTANCE_HANDLE()
a handy macro that frees one from knowing the name of the handle.