Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Owner drawn popup menu and its border Pin
Iain Clarke, Warrior Programmer6-Oct-04 4:25
Iain Clarke, Warrior Programmer6-Oct-04 4:25 
GeneralRe: Owner drawn popup menu and its border Pin
tabor256-Oct-04 5:03
tabor256-Oct-04 5:03 
GeneralSelecting a bitmap into two mem DC's at the same time Pin
Garth Watkins6-Oct-04 2:22
Garth Watkins6-Oct-04 2:22 
Generalexe file not run properly Pin
nirmit6-Oct-04 2:08
nirmit6-Oct-04 2:08 
GeneralRe: exe file not run properly Pin
ThatsAlok6-Oct-04 2:44
ThatsAlok6-Oct-04 2:44 
GeneralRe: exe file not run properly Pin
David Crow6-Oct-04 3:58
David Crow6-Oct-04 3:58 
GeneralPop-up Menu Pin
Rage6-Oct-04 2:03
professionalRage6-Oct-04 2:03 
GeneralRe: Pop-up Menu Pin
Garth Watkins6-Oct-04 2:51
Garth Watkins6-Oct-04 2:51 
While I'm on the forum asking questions, let me contribute...Smile | :)
TrackPopupMenu doesn't return the selection made, it only returns whether it was successfull or not. You actually get sent a message telling you what the user selected. This means you will have to install a command handler for that particular menu ID. which will put the following in your header file:

afx_msg void OnOpenNormal(void);

The following in your implementation file

BEGIN_MESSAGE_MAP(YourWindowClass, TheBaseWindowClass)
....
....
ON_COMMAND(ID_OPEN_NORMAL,OnOpenNormal)
...
END_MESSAGE_MAP()

And the handler code

void YourWindowClass::OnOpenNormal(void)<br />
{<br />
   //Handle the ID_OPEN_NORMAL message here<br />
<br />
}

GeneralRe: Pop-up Menu Pin
Rage6-Oct-04 3:59
professionalRage6-Oct-04 3:59 
GeneralRe: Pop-up Menu Pin
Iain Clarke, Warrior Programmer6-Oct-04 4:54
Iain Clarke, Warrior Programmer6-Oct-04 4:54 
GeneralRe: Pop-up Menu Pin
Rage6-Oct-04 21:07
professionalRage6-Oct-04 21:07 
GeneralProble with OnTimer() Pin
Leyu6-Oct-04 1:36
Leyu6-Oct-04 1:36 
GeneralRe: Proble with OnTimer() Pin
toxcct6-Oct-04 1:57
toxcct6-Oct-04 1:57 
GeneralRe: Proble with OnTimer() Pin
Nathan Holt at EMOM6-Oct-04 5:28
Nathan Holt at EMOM6-Oct-04 5:28 
GeneralRe: Proble with OnTimer() Pin
toxcct6-Oct-04 6:35
toxcct6-Oct-04 6:35 
GeneralRe: Proble with OnTimer() Pin
Nathan Holt at EMOM6-Oct-04 7:02
Nathan Holt at EMOM6-Oct-04 7:02 
GeneralRe: Proble with OnTimer() Pin
Iain Clarke, Warrior Programmer6-Oct-04 5:32
Iain Clarke, Warrior Programmer6-Oct-04 5:32 
GeneralRe: Proble with OnTimer() Pin
LittleYellowBird6-Oct-04 5:36
LittleYellowBird6-Oct-04 5:36 
GeneralRe: Proble with OnTimer() Pin
Leyu6-Oct-04 8:01
Leyu6-Oct-04 8:01 
GeneralRe: Proble with OnTimer() Pin
BlackDice6-Oct-04 10:59
BlackDice6-Oct-04 10:59 
Generalexe file not run properly out side of vc++ environment Pin
nirmit6-Oct-04 1:09
nirmit6-Oct-04 1:09 
GeneralRe: exe file not run properly out side of vc++ environment Pin
toxcct6-Oct-04 1:25
toxcct6-Oct-04 1:25 
GeneralRe: exe file not run properly out side of vc++ environment Pin
nirmit6-Oct-04 2:54
nirmit6-Oct-04 2:54 
GeneralRe: exe file not run properly out side of vc++ environment Pin
David Crow6-Oct-04 4:03
David Crow6-Oct-04 4:03 
GeneralRe: exe file not run properly out side of vc++ environment Pin
toxcct6-Oct-04 6:26
toxcct6-Oct-04 6:26 

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.