Click here to Skip to main content
15,915,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing more than 1 page Pin
Steve S5-Nov-02 2:50
Steve S5-Nov-02 2:50 
GeneralProblems with accelerators and modeless dialogs! Pin
Daniel Strigl5-Nov-02 1:06
Daniel Strigl5-Nov-02 1:06 
GeneralRe: Problems with accelerators and modeless dialogs! Pin
dabs5-Nov-02 3:07
dabs5-Nov-02 3:07 
GeneralRe: Problems with accelerators and modeless dialogs! Pin
Daniel Strigl5-Nov-02 3:17
Daniel Strigl5-Nov-02 3:17 
QuestionTransparent Bitmap? Pin
Jawache5-Nov-02 1:00
Jawache5-Nov-02 1:00 
AnswerRe: Transparent Bitmap? Pin
jhwurmbach5-Nov-02 1:42
jhwurmbach5-Nov-02 1:42 
GeneralMSChart Pin
Ruca5-Nov-02 1:02
Ruca5-Nov-02 1:02 
Generalproblem with context menu in mdi Pin
fargo2k5-Nov-02 0:35
fargo2k5-Nov-02 0:35 
I'm creating a MDI application which creates a context menu by re-using a menu from the parent frame. This works fine when the child frame is not maximised. But when the child frame is maximised I get the wrong menu. i.e instead of getting the 4th item in the menu, it gets the 5th when maximised. This is not really true, as I notice that an icon is inserted as the 0th item in the menu when maximised. ie

restore view:
MENU
0th = File, 1st = Edit, 2nd = View, 3rd = Model


maximised view
MENU
0th = ICON, 1st = File, 2nd = Edit, 3rd = View, 4th = Model

The code I've used for my context menu is shown below


CMDIFrameWnd *pMainFrame = GetMDIFrame();

CMenu *pMenu = pMainFrame->GetMenu();

pMenu = pMenu->GetSubMenu(3);
pMenu->TrackPopupMenu(TPM_LEFTALIGN + TPM_LEFTBUTTON, point.x, point.y, this, NULL);


any please would be appreciated


GeneralRe: problem with context menu in mdi Pin
Ravi Bhavnani5-Nov-02 0:54
professionalRavi Bhavnani5-Nov-02 0:54 
GeneralRe: problem with context menu in mdi Pin
fargo2k5-Nov-02 1:35
fargo2k5-Nov-02 1:35 
GeneralChange from decimal number to hex character Pin
ooosawaddee35-Nov-02 0:32
ooosawaddee35-Nov-02 0:32 
GeneralRe: Change from decimal number to hex character Pin
Anatari5-Nov-02 0:43
Anatari5-Nov-02 0:43 
GeneralRe: Change from decimal number to hex character Pin
Stephane Rodriguez.5-Nov-02 0:56
Stephane Rodriguez.5-Nov-02 0:56 
GeneralRe: Change from decimal number to hex character Pin
Gary R. Wheeler5-Nov-02 11:10
Gary R. Wheeler5-Nov-02 11:10 
GeneralRe: Change from decimal number to hex character Pin
Ravi Bhavnani5-Nov-02 0:57
professionalRavi Bhavnani5-Nov-02 0:57 
GeneralMIME types & application Pin
ov5-Nov-02 0:07
ov5-Nov-02 0:07 
GeneralRe: MIME types & application Pin
Stephane Rodriguez.5-Nov-02 0:21
Stephane Rodriguez.5-Nov-02 0:21 
GeneralRe: MIME types & application Pin
Anatari5-Nov-02 0:18
Anatari5-Nov-02 0:18 
GeneralRe: MIME types & application Pin
ov5-Nov-02 3:17
ov5-Nov-02 3:17 
GeneralSaving/Copying a file. Pin
a3gupta4-Nov-02 23:12
a3gupta4-Nov-02 23:12 
GeneralRe: Saving/Copying a file. Pin
jhwurmbach4-Nov-02 23:19
jhwurmbach4-Nov-02 23:19 
GeneralRe: Saving/Copying a file. Pin
a3gupta4-Nov-02 23:24
a3gupta4-Nov-02 23:24 
GeneralRe: Saving/Copying a file. Pin
jhwurmbach4-Nov-02 23:35
jhwurmbach4-Nov-02 23:35 
GeneralRe: Saving/Copying a file. Pin
Joan M4-Nov-02 23:23
professionalJoan M4-Nov-02 23:23 
GeneralRe: Saving/Copying a file. Pin
a3gupta4-Nov-02 23:26
a3gupta4-Nov-02 23: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.