Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: bar code Pin
Cedric Moonen9-Mar-06 21:56
Cedric Moonen9-Mar-06 21:56 
AnswerRe: bar code Pin
Monty29-Mar-06 21:56
Monty29-Mar-06 21:56 
QuestionRe: bar code Pin
David Crow10-Mar-06 2:58
David Crow10-Mar-06 2:58 
QuestionUsing the Library Pin
itkid9-Mar-06 21:41
itkid9-Mar-06 21:41 
AnswerRe: Using the Library Pin
MF9-Mar-06 22:45
MF9-Mar-06 22:45 
AnswerRe: Using the Library Pin
Stephen Hewitt9-Mar-06 22:47
Stephen Hewitt9-Mar-06 22:47 
Questionhow to show menu on right click of mouse on dialog Pin
baldha rakesh9-Mar-06 21:37
baldha rakesh9-Mar-06 21:37 
AnswerRe: how to show menu on right click of mouse on dialog Pin
Monty29-Mar-06 21:54
Monty29-Mar-06 21:54 
Add a menu, then add a submenu to the menu.

The use Classwizard to add a Message Handler for WM_RBUTTONCLICK

writting from memory s please confirm

In Handler
...::OnRclick()
{
     DWORD dwMousePos = GetMessagePos();
    
     //Confirm the HIWORD and LOWORD please 
     CPoint pt(HIWORD(dwMousePos),LOWORD(dwMousePos));

     //Use ScreenToClient to change the coordinates if needed
 
     CMenu menu;
     menu.LoadMenu(IDR_MENU1);

     CMenu *pSubMenu = menu.GetSubMenu(0);

     pSubMenu->TrackPopupMenu(...);     
}


hope it helps


C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
AnswerRe: how to show menu on right click of mouse on dialog Pin
Xing Chen9-Mar-06 21:56
Xing Chen9-Mar-06 21:56 
AnswerRe: how to show menu on right click of mouse on dialog Pin
baldha rakesh9-Mar-06 21:57
baldha rakesh9-Mar-06 21:57 
AnswerRe: how to show menu on right click of mouse on dialog Pin
Hamid_RT9-Mar-06 23:12
Hamid_RT9-Mar-06 23:12 
Questionprofiling Pin
wb9-Mar-06 21:35
wb9-Mar-06 21:35 
AnswerRe: profiling Pin
Jack Puppy10-Mar-06 1:55
Jack Puppy10-Mar-06 1:55 
Questioncatching a crashing call to a third party api Pin
Jerome Conus9-Mar-06 21:20
Jerome Conus9-Mar-06 21:20 
AnswerRe: catching a crashing call to a third party api Pin
Xing Chen9-Mar-06 21:25
Xing Chen9-Mar-06 21:25 
GeneralRe: catching a crashing call to a third party api Pin
Jerome Conus9-Mar-06 21:45
Jerome Conus9-Mar-06 21:45 
AnswerRe: catching a crashing call to a third party api Pin
kakan9-Mar-06 21:32
professionalkakan9-Mar-06 21:32 
GeneralRe: catching a crashing call to a third party api Pin
Jerome Conus9-Mar-06 21:39
Jerome Conus9-Mar-06 21:39 
AnswerRe: catching a crashing call to a third party api Pin
Stephen Hewitt9-Mar-06 21:59
Stephen Hewitt9-Mar-06 21:59 
QuestionControlling powerpoint?! Pin
markhaslehurst9-Mar-06 21:04
markhaslehurst9-Mar-06 21:04 
AnswerRe: Controlling powerpoint?! Pin
Ryan Binns9-Mar-06 21:47
Ryan Binns9-Mar-06 21:47 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst9-Mar-06 21:57
markhaslehurst9-Mar-06 21:57 
GeneralRe: Controlling powerpoint?! Pin
Ryan Binns9-Mar-06 22:25
Ryan Binns9-Mar-06 22:25 
GeneralRe: Controlling powerpoint?! Pin
markhaslehurst9-Mar-06 22:33
markhaslehurst9-Mar-06 22:33 
GeneralRe: Controlling powerpoint?! Pin
Ryan Binns9-Mar-06 22:41
Ryan Binns9-Mar-06 22:41 

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.