Commit 8859c058 authored by Vincent Wei's avatar Vincent Wei
Browse files

use LRESULT to save the result of SendMessage

Showing with 3 additions and 3 deletions
+3 -3
......@@ -53,9 +53,9 @@ BOOL RegisterColorPanel(void);
#define CP_GETSELCELL CP_MESSAGE + 6
#define CPGetSelCell(hwnd, prow, pcol) do{ \
int sel = SendMessage(hwnd, CP_GETSELCELL, 0, 0); \
*(prow) = (int)(short)(LOWORD(sel)); \
*(pcol) = (int)(short)(HIWORD(sel)); \
LRESULT sel = SendMessage(hwnd, CP_GETSELCELL, 0, 0); \
*(prow) = (int)(LOWORD(sel)); \
*(pcol) = (int)(HIWORD(sel)); \
}while(0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment