Click here to Skip to main content
15,891,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreateProcess Pin
Paul Selormey28-Jul-04 11:58
Paul Selormey28-Jul-04 11:58 
GeneralRe: CreateProcess Pin
valikac28-Jul-04 14:00
valikac28-Jul-04 14:00 
GeneralRe: CreateProcess Pin
Jörgen Sigvardsson28-Jul-04 14:04
Jörgen Sigvardsson28-Jul-04 14:04 
GeneralRe: CreateProcess Pin
Paul Selormey28-Jul-04 14:41
Paul Selormey28-Jul-04 14:41 
GeneralRe: CreateProcess Pin
Jörgen Sigvardsson28-Jul-04 14:03
Jörgen Sigvardsson28-Jul-04 14:03 
GeneralRe: CreateProcess Pin
Paul Selormey28-Jul-04 14:40
Paul Selormey28-Jul-04 14:40 
Questiondig fuction for Windows ?? Pin
otrcomm28-Jul-04 10:57
otrcomm28-Jul-04 10:57 
General(Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex28-Jul-04 10:53
Scolex28-Jul-04 10:53 
My plan is actually quite simple. . . I want to create a 4-pane symmetrical splitter in the mainframe client area between a docked toolbar and a status bar for an SDI application. In order to properly set the initial pane sizes, I must use GetWindowRect for the status and tool bars to find the available client rectangle. Everything I have read thus far indicates that the splitter should be created in the overridden OnCreateClient funtion called by the framework. Now for my problem. . .
I cannot access these functions for the controls in the OnCreateClient function. I get assertion errors when I try to get their dimensions. I also cannot get the correct dimension in the OnCreate function. For testing purposes, I simply copied my code for getting these rectangles into the OnPaint function and accessing the correct sizes is no problem. Therefore, I can only assume that I cannot access them in the other functions because the creation of the controls is not complete until AFTER the OnCreate (in which the controls are created) and OnCreateClient functions have returned.
What is the appropriate method for getting the control dimensions with which to initialize the correct pane size in my splitter window? I noticed that in one article the calls to GetWindowRect for the controls were placed in the OnSize function. But, when OnSize is called, I want to set the panes to occupy the same proportion of the client area space as they did before the resize. I must, at some point, initialize their size to 1/4 the usable client area, but where it would be best to do this. . .I have no idea, but I know that I can't do it in OnCreateClient where it makes the most sense.



GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Johan Rosengren28-Jul-04 20:06
Johan Rosengren28-Jul-04 20:06 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex29-Jul-04 9:48
Scolex29-Jul-04 9:48 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
David Crow29-Jul-04 2:35
David Crow29-Jul-04 2:35 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex29-Jul-04 16:47
Scolex29-Jul-04 16:47 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex29-Jul-04 16:55
Scolex29-Jul-04 16:55 
GeneralTandem Pin
bikram singh28-Jul-04 9:51
bikram singh28-Jul-04 9:51 
Generalrebar animation Pin
alex.barylski28-Jul-04 9:23
alex.barylski28-Jul-04 9:23 
GeneralDialog Pin
S.DARWIN PAUL RAJ28-Jul-04 9:18
S.DARWIN PAUL RAJ28-Jul-04 9:18 
GeneralRe: Dialog Pin
David Crow28-Jul-04 9:28
David Crow28-Jul-04 9:28 
GeneralRe: Dialog Pin
Anonymous28-Jul-04 19:38
Anonymous28-Jul-04 19:38 
GeneralRe: Dialog Pin
David Crow29-Jul-04 3:47
David Crow29-Jul-04 3:47 
QuestionHow to redirect output to a file using shellexecute. Pin
RobJones28-Jul-04 8:41
RobJones28-Jul-04 8:41 
AnswerRe: How to redirect output to a file using shellexecute. Pin
Jaime Stuardo28-Jul-04 8:55
Jaime Stuardo28-Jul-04 8:55 
GeneralRe: How to redirect output to a file using shellexecute. Pin
RobJones28-Jul-04 9:02
RobJones28-Jul-04 9:02 
GeneralFigured it out. Pin
RobJones28-Jul-04 9:11
RobJones28-Jul-04 9:11 
GeneralRe: How to redirect output to a file using shellexecute. Pin
David Crow28-Jul-04 9:27
David Crow28-Jul-04 9:27 
GeneralRe: How to redirect output to a file using shellexecute. Pin
RobJones28-Jul-04 9:29
RobJones28-Jul-04 9:29 

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.