Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To get a popup menu when right clicking on command button [modified] Pin
RockyJames9-Jul-06 23:05
RockyJames9-Jul-06 23:05 
GeneralRe: To get a popup menu when right clicking on command button Pin
RockyJames10-Jul-06 0:25
RockyJames10-Jul-06 0:25 
GeneralRe: To get a popup menu when right clicking on command button Pin
ashish dogra10-Jul-06 0:35
ashish dogra10-Jul-06 0:35 
GeneralRe: To get a popup menu when right clicking on command button [modified] Pin
RockyJames10-Jul-06 1:24
RockyJames10-Jul-06 1:24 
GeneralRe: To get a popup menu when right clicking on command button Pin
ashish dogra10-Jul-06 1:43
ashish dogra10-Jul-06 1:43 
GeneralRe: To get a popup menu when right clicking on command button Pin
RockyJames10-Jul-06 2:08
RockyJames10-Jul-06 2:08 
GeneralRe: To get a popup menu when right clicking on command button Pin
ashish dogra10-Jul-06 2:13
ashish dogra10-Jul-06 2:13 
GeneralRe: To get a popup menu when right clicking on command button Pin
RockyJames10-Jul-06 2:29
RockyJames10-Jul-06 2:29 
i have taken sample dialog based application,named it sample..i have overriden WM_CONTEXTMENU in CSampleDlg class..and wrote following code in OnContextMenu function..

CMenu menu;
menu.CreatePopupMenu();
menu.AppendMenu(MF_ENABLED | MF_STRING , 1000, _T("Hello"));
menu.AppendMenu(MF_ENABLED | MF_STRING , 1001, _T("Hello1"));
menu.AppendMenu(MF_ENABLED | MF_STRING , 1002, _T("Hello2"));
menu.TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);

its working fine...
GeneralRe: To get a popup menu when right clicking on command button Pin
ashish dogra10-Jul-06 2:37
ashish dogra10-Jul-06 2:37 
GeneralRe: To get a popup menu when right clicking on command button Pin
RockyJames10-Jul-06 2:42
RockyJames10-Jul-06 2:42 
GeneralRe: To get a popup menu when right clicking on command button Pin
ashish dogra10-Jul-06 2:48
ashish dogra10-Jul-06 2:48 
GeneralRe: To get a popup menu when right clicking on command button Pin
ashish dogra10-Jul-06 3:12
ashish dogra10-Jul-06 3:12 
Questionabout Progress control Pin
ashish dogra9-Jul-06 22:38
ashish dogra9-Jul-06 22:38 
GeneralRe: about Progress control Pin
FarPointer9-Jul-06 23:16
FarPointer9-Jul-06 23:16 
GeneralRe: about Progress control Pin
ashish dogra9-Jul-06 23:22
ashish dogra9-Jul-06 23:22 
GeneralRe: about Progress control Pin
FarPointer9-Jul-06 23:41
FarPointer9-Jul-06 23:41 
GeneralRe: about Progress control Pin
ashish dogra9-Jul-06 23:54
ashish dogra9-Jul-06 23:54 
GeneralRe: about Progress control Pin
FarPointer10-Jul-06 0:14
FarPointer10-Jul-06 0:14 
GeneralRe: about Progress control Pin
ashish dogra10-Jul-06 0:32
ashish dogra10-Jul-06 0:32 
GeneralRe: about Progress control Pin
FarPointer10-Jul-06 1:14
FarPointer10-Jul-06 1:14 
GeneralRe: about Progress control Pin
ashish dogra10-Jul-06 1:49
ashish dogra10-Jul-06 1:49 
GeneralRe: about Progress control Pin
ashish dogra10-Jul-06 2:02
ashish dogra10-Jul-06 2:02 
QuestionCan't run my program on other computers Pin
Tnarol9-Jul-06 22:17
Tnarol9-Jul-06 22:17 
AnswerRe: Can't run my program on other computers Pin
Hamid_RT9-Jul-06 22:31
Hamid_RT9-Jul-06 22:31 
GeneralRe: Can't run my program on other computers Pin
Tnarol9-Jul-06 22:44
Tnarol9-Jul-06 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.