home *** CD-ROM | disk | FTP | other *** search
- /*Filename: USERCODE.C */
- /*"STRINGS" Generated by WindowsMAKER */
- /*Author: Bill G. */
-
- #include <WINDOWS.H>
- #include "STRINGS.H"
-
- HWND hwndText=0;
- #define ID_CHILD 100
-
- long BLD_WM_CREATEMsg(hWnd,message,wParam,lParam) /* Procedure for message processing */
- HWND hWnd;
- unsigned message;
- WORD wParam;
- LONG lParam;
- {
- /* Create an text control together with the child */
- hwndText = CreateWindow ("static",
- NULL,
- WS_CHILD|WS_VISIBLE|SS_LEFT,
- 0,
- 0,
- 0,
- 0,
- hWnd,
- ID_CHILD,
- hInst,
- NULL);
- return DefWindowProc(hWnd, message, wParam, lParam);
- }
-
- long BLD_WM_SIZEMsg(hWnd,message,wParam,lParam) /* Procedure for message processing */
- HWND hWnd;
- unsigned message;
- WORD wParam;
- LONG lParam;
- {
- RECT rect;
- LONG l1,l2;
- l1=GetDialogBaseUnits();
- l2=(8*HIWORD(l1))/8;
- GetClientRect (hWnd, &rect);
- MoveWindow (hwndText,
- rect.left,
- rect.top+rect.bottom-(int)l2,
- rect.right-rect.left,
- (int)l2,
- TRUE);
- return DefWindowProc(hWnd, message, wParam, lParam);
- }
-
- long BLD_WM_MENUSELECTMsg(hWnd,message,wParam,lParam) /* Procedure for message processing */
- HWND hWnd;
- unsigned message;
- WORD wParam;
- LONG lParam;
- {
- char szText[200+1];
- if (LoadString(hInst,wParam,szText,200))
- SetWindowText(hwndText,szText);
- else
- SetWindowText(hwndText,"");
- return DefWindowProc(hWnd, message, wParam, lParam);
- }
-