3/28/2023 0 Comments Sampler program for old macPaintContent(HWND hwnd, PAINTSTRUCT *pps) * Interesting things will be painted here eventually. * Post a quit message because our application is over when the * Applications will typically override this and maybe even MoveWindow(g_hwndChild, 0, 0, cx, cy, TRUE) OnSize(HWND hwnd, UINT state, int cx, int cy) * If we have an inner child, resize it to fit. HWND g_hwndChild /* Optional child window */ HINSTANCE g_hinst /* This application's HINSTANCE */ In a real program, of course, instance data would be attached to the window instead of floating globally. To avoid reproducing the boring parts of the program, let’s agree on using the following template for our sample programs.įor expository purposes, I won’t use a C++ class. Occasionally, there is need to illustrate a point with a full program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |