VOID
HandlePrintRect(HWND handle,DWORD Msg,WPARAM wParam,LPARAM lParam)
{
- RECT rect;
+ RECT rect = *(RECT*)lParam;
TextBuffer[8] = (char)(BUFFERLEN - 8); /* Setting the max size to put chars in first byte */
SendMessage(handle,Msg,wParam,lParam);
xSize, /* nWidth */
20, /* nHeight */
g_hwnd,
- (HMENU) id,
+ LongToHandle(id),
g_hInst,
NULL
);
xSize, /* nWidth */
20, /* nHeight */
g_hwnd,
- (HMENU) id,
+ LongToHandle(id),
g_hInst,
NULL
);