Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Has anyone encountered labels cutting off using the Ribbon Toolbar? Pin
Randor 10-Nov-09 6:45
professional Randor 10-Nov-09 6:45 
QuestionRibbon Bar creates multiple menu items with same name Pin
Dale Haessel9-Nov-09 7:10
Dale Haessel9-Nov-09 7:10 
AnswerRe: Ribbon Bar creates multiple menu items with same name Pin
Randor 9-Nov-09 8:13
professional Randor 9-Nov-09 8:13 
GeneralRe: Ribbon Bar creates multiple menu items with same name Pin
Dale Haessel9-Nov-09 9:35
Dale Haessel9-Nov-09 9:35 
GeneralRe: Ribbon Bar creates multiple menu items with same name Pin
Randor 9-Nov-09 10:54
professional Randor 9-Nov-09 10:54 
GeneralRe: Ribbon Bar creates multiple menu items with same name Pin
Dale Haessel9-Nov-09 12:37
Dale Haessel9-Nov-09 12:37 
GeneralRe: Ribbon Bar creates multiple menu items with same name Pin
Randor 9-Nov-09 13:15
professional Randor 9-Nov-09 13:15 
QuestionIncrease mainframe window if right side of inserted view is out of MainFrames client area [modified] Pin
Fusshoeller9-Nov-09 7:05
Fusshoeller9-Nov-09 7:05 
I have some problems getting the screen coordinates of the client area of my mainframe and later increasing if the right side coordinate of the mainframes client Rect is smaller than the views right side coordinate.
For testing i positioned the view fitting in the mainframes client area(By Mouse). So the outside coordintes of the View Window should be the same as the inside coordinates of the main frame client area.
But it isn't!!
What am I doing wrong?

Code inside the view class:

GetWindowRect(ViewWindo wRectSC);

pMainFrame->GetClientRect(MainFrameClientRectCCMain);
MainFrameClientRectSC=MainFrameClientRectCCMain;
pMainFrame->ClientToScreen(MainFrameClientRectSC);
But
ViewWindowRectSC.right is not MainFrameClientRectSC.right

f.e.
ViewWindowRectSC: {top=99 bottom=918 left=14 right=1267}
MainFrameClientRectSC {top=42 bottom=964 left=4 right=1277}

I tried a lot but it is getting more and more unclear.

For example i tried to find frames or bars or something else with the GetSystemMetrics() function because i was thinking that there could be coordinate values not bringing these into account these. Didn't help.

Also tried to calculate the outside of the view window by first using
GetClientRect(ViewClientRectCC) and then
AdjustWindowRectEx(ViewClientRectCC,GetStyle(),1,GetExStyle());
Didn't help.
Thanks a lot
Hubert
[solved]Thumbs Up | :thumbsup:

modified on Wednesday, November 11, 2009 4:29 AM

AnswerRe: Increase mainframe window if right side of inserted view is out of MainFrames client area Pin
«_Superman_»9-Nov-09 8:02
professional«_Superman_»9-Nov-09 8:02 
GeneralRe: Increase mainframe window if right side of inserted view is out of MainFrames client area Pin
Fusshoeller9-Nov-09 8:33
Fusshoeller9-Nov-09 8:33 
AnswerRe: Increase mainframe window if right side of inserted view is out of MainFrames client area Pin
Fusshoeller10-Nov-09 22:20
Fusshoeller10-Nov-09 22:20 
Questionhow to use createprocess to create a new console window(cmd.exe) and run commands Pin
devgo9-Nov-09 7:03
devgo9-Nov-09 7:03 
AnswerRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
Randor 9-Nov-09 7:17
professional Randor 9-Nov-09 7:17 
GeneralRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
devgo9-Nov-09 7:28
devgo9-Nov-09 7:28 
QuestionRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
David Crow9-Nov-09 7:52
David Crow9-Nov-09 7:52 
GeneralRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
Randor 9-Nov-09 7:54
professional Randor 9-Nov-09 7:54 
GeneralRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
devgo9-Nov-09 9:18
devgo9-Nov-09 9:18 
GeneralRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
Randor 9-Nov-09 10:19
professional Randor 9-Nov-09 10:19 
GeneralRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
devgo9-Nov-09 10:56
devgo9-Nov-09 10:56 
GeneralRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
devgo11-Nov-09 9:15
devgo11-Nov-09 9:15 
GeneralRe: how to use createprocess to create a new console window(cmd.exe) and run commands Pin
Randor 11-Nov-09 16:34
professional Randor 11-Nov-09 16:34 
QuestionIs there a way to register an activeX ocx file with relative path and not full path? Pin
eyal_balla9-Nov-09 4:31
eyal_balla9-Nov-09 4:31 
AnswerRe: Is there a way to register an activeX ocx file with relative path and not full path? Pin
Chris Losinger9-Nov-09 5:34
professionalChris Losinger9-Nov-09 5:34 
QuestionHow do I get contents of long strings in VS 2008 debugger? Pin
Interrobang9-Nov-09 4:28
Interrobang9-Nov-09 4:28 
AnswerRe: How do I get contents of long strings in VS 2008 debugger? Pin
loyal ginger9-Nov-09 4:48
loyal ginger9-Nov-09 4:48 

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.