Sent when the user double-clicks a mouse button in the ImageList Control's client area.
Parameter |
Description |
WParam |
idCtrl = (L_INT) LOWORD(wParam) identifier of control |
|
wNotifyCode = HIWORD(wParam) notification code |
LParam |
pClick = (pLILCLICK) lParam pointer to click info structure |
Sent when the user double-clicks a mouse button in the ImageList Control's client area. pClick contains the mouse position of the click event.
The parent window of the control receives this notification message through the WM_COMMAND message.
Elements: |
L_ILN_SETFOCUS, L_ILN_KILLFOCUS, L_ILN_HSCROLL, L_ILN_VSCROLL, L_ILN_CLICKED, L_ILN_ITEMSEL, L_ILN_ITEMUNSEL, L_ILN_KEYDOWN |
Topics: |
|
|
this function processes all the messages for a window
static HWND hCtl;L_SIZE_T MainWndProc4(HWND hWnd, L_UINT Message, WPARAM wParam,LPARAM lParam){WORD wNotifyCode;L_INT idCtl;HWND hWndCtrl;L_TCHAR buf[300];pLILCLICK pClick;switch (Message){case WM_SETFOCUS:if(hCtl)SetFocus(hCtl);break;case WM_COMMAND:wNotifyCode = HIWORD(wParam); // notification codeidCtl = LOWORD(wParam); // item, control, or accelerator identifierhWndCtrl = (HWND) lParam; // handle of controlswitch(idCtl){case IDC_LEADIMAGELIST:switch(wNotifyCode){/* other code here */case L_ILN_DBLCLCK:pClick = (pLILCLICK)lParam;wsprintf(buf, TEXT("x: %ld, y: %ld"), pClick->xPos, pClick->yPos);MessageBox(hWnd, buf, TEXT("Double-Clicked"), MB_OK);break;/* other code here */}break;/* other code here */}break;/* other code here */}return DefWindowProc (hWnd, Message, wParam, lParam);}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
