5.5Sample Program
This sample program is created with the method of
It introduces the IOBOX1.C program and its reference sources, and shows a list of environment variables.
// windows ce iobox sample file
#include <windows.h> #include <commctrl.h> #include "iobox1.h"
VOID ioProc( void);
TCHAR szAppName[ ] = TEXT("Hello Windows CE");
TCHAR szTitle[ ] =
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
HINSTANCE | hInst = NULL; |
HWND | hWndCB = NULL; |
HANDLE hWnd;
HANDLE h;
const int WINDOW_WIDTH = 480; const int WINDOW_HEIGHT = 214;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow )
{
// HWNDhWnd;
MSGmsg;
WNDCLASS wc;
wc.style | = 0L; |
wc.lpfnWndProc | = (WNDPROC) WndProc; |
wc.cbClsExtra | = 0; |
wc.cbWndExtra | = 0; |
wc.hInstance | = hInstance; |
wc.hIcon | = NULL; |
wc.hCursor | = NULL; |
wc.hbrBackground | = (HBRUSH) GetStockObject(WHITE_BRUSH); |
wc.lpszMenuName | = NULL; |
wc.lpszClassName | = szAppName; |
RegisterClass(&wc); |
|
38