Right mouse click for CStatic ?
-
Hi, how can I enable an right mouse click eventhandler for a CStatic icon control? THX
-
Hi, how can I enable an right mouse click eventhandler for a CStatic icon control? THX
MyDialog.h afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); MyDialog.cpp BEGIN_MESSAGE_MAP(CMyDialog, CDialog) ON_WM_CONTEXTMENU() END_MESSAGE_MAP() void CMyDialog::OnContextMenu(CWnd* pWnd, CPoint point) { // TODO: Add your message handler code here CMenu menu; VERIFY(menu.LoadMenu(IDR_POPUP_MENU)); CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd()); } ---------------------------------------------------------------------------- I Belive that this would be helpfull to u JAYARAJ
-
MyDialog.h afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); MyDialog.cpp BEGIN_MESSAGE_MAP(CMyDialog, CDialog) ON_WM_CONTEXTMENU() END_MESSAGE_MAP() void CMyDialog::OnContextMenu(CWnd* pWnd, CPoint point) { // TODO: Add your message handler code here CMenu menu; VERIFY(menu.LoadMenu(IDR_POPUP_MENU)); CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd()); } ---------------------------------------------------------------------------- I Belive that this would be helpfull to u JAYARAJ
Hi, thank you very much !!! Thats exactly what I searched !
-
Hi, thank you very much !!! Thats exactly what I searched !
OK.. i need to acess mysql from remote system? do u know how to do it? myconnection string _T("Driver={MySQL ODBC 3.51 Driver};Server=61.247.251.95;Port=3306;Database=ist_encoder;User=root;Password=isakura;Option=4"); can u help me to solve this problem. JAYARAJ
-
MyDialog.h afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); MyDialog.cpp BEGIN_MESSAGE_MAP(CMyDialog, CDialog) ON_WM_CONTEXTMENU() END_MESSAGE_MAP() void CMyDialog::OnContextMenu(CWnd* pWnd, CPoint point) { // TODO: Add your message handler code here CMenu menu; VERIFY(menu.LoadMenu(IDR_POPUP_MENU)); CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd()); } ---------------------------------------------------------------------------- I Belive that this would be helpfull to u JAYARAJ