Note
/* The class is registered, let’s create the program*/
hwnd = CreateWindowEx (
0, /* Extended possibilites for variation */
szClassName, /* Classname */
“My window”, /* Title Text */
WS_OVERLAPPEDWINDOW | /*default window*/
WS_HSCROLL | /*horizontal scroll bar*/
WS_VSCROLL, /*vertical scroll bar*/
CW_USEDEFAULT, /* Windows decides the position */
CW_USEDEFAULT, /* where the window ends up on the screen */
[b]544, [/b] /* The programs width */
[b]375,[/b] /* and height in pixels */
HWND_DESKTOP, /* The window is a child-window to desktop */
(HMENU)NULL, /* No menu */
hThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
- The left of the screen is an x value of zero and it increases to the right; the top of screen is a y value of zero which increases toward the bottom. The units are pixels, which is the smallest unit a screen can display at a given resolution.
It’s not so important. I had to post something anyway and it seemed to befit the occasion.
