GME
13
|
00001 // InPlaceCommon.cpp : implementation file 00002 // 00003 // Common functions used by in-place popup 00004 // (color, combo-box, compass-check, compass-opt, etc.) dialogs 00005 // 00007 00008 #include "stdafx.h" 00009 #include "InPlaceCommon.h" 00010 00011 #ifdef _DEBUG 00012 #define new DEBUG_NEW 00013 #undef THIS_FILE 00014 static char THIS_FILE[] = __FILE__; 00015 #endif 00016 00017 void RelayMouseClickToInspectorList(CWnd* inspectorList, CPoint screenPoint) 00018 { 00019 ASSERT(inspectorList != NULL); 00020 if (inspectorList == NULL) 00021 return; 00022 00023 CPoint cPoint = screenPoint; 00024 inspectorList->ScreenToClient(&cPoint); 00025 inspectorList->PostMessage(WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(cPoint.x, cPoint.y)); 00026 inspectorList->PostMessage(WM_LBUTTONUP, MK_LBUTTON, MAKELPARAM(cPoint.x, cPoint.y)); 00027 }