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.

Advertisement

~ by weberxpc on June 29, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.