1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
LRESULT CALLBACK InfoProc(HWND infoWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
HDC hdc;
PAINTSTRUCT ps;
static HWND hShapeType, hBase, hHeight;
switch(msg)
{
case WM_CREATE:
hShapeType = CreateWindow(TEXT("shape type"),NULL,
WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT |
ES_AUTOHSCROLL | ES_AUTOVSCROLL,0,0,300,600,
infoWnd,(HMENU)ID_SHAPETYPE,(HINSTANCE)GetWindowLong(infoWnd,GWL_HINSTANCE),NULL);
return 0;
|