Making window half of the screen
-
Hi All, I have a form view. I want to display this SDI to Half (Left)of the screen. Again I have another form view. I want to display this SDI to Half (Right)of the screen. How to do? I have changed the CREATESTRUCT structure. but it is not working. Any idea.
-
Hi All, I have a form view. I want to display this SDI to Half (Left)of the screen. Again I have another form view. I want to display this SDI to Half (Right)of the screen. How to do? I have changed the CREATESTRUCT structure. but it is not working. Any idea.
-
Hi All, I have a form view. I want to display this SDI to Half (Left)of the screen. Again I have another form view. I want to display this SDI to Half (Right)of the screen. How to do? I have changed the CREATESTRUCT structure. but it is not working. Any idea.
You should go for splitter window. See this sample SDI with split window[^] Added: Are you talking about two different applications?
nave [My Articles] [My Blog]
-
You can use SetWindowPos() on your AfxGetMainWnd() after it has been created in your CApp::InitInstance()
-
Hi All, I have a form view. I want to display this SDI to Half (Left)of the screen. Again I have another form view. I want to display this SDI to Half (Right)of the screen. How to do? I have changed the CREATESTRUCT structure. but it is not working. Any idea.
Although Niklas post is correct I should recommend to consider a better design. Unless you are developing something very specific (like a process plant control synoptic) you should not manage how your window(s) appear on the user screen. You are not the owner of the user environment and the user may also have other application running, may be even more important (or less, depends on the circumstances) than your, and will perceive your popping out at the placement you decide as a sort of ... invadence. Consider, instead, a different design where a single frame window contains two children (your actual windows), may be either managed through a splitter or with fixed proportional positions. You decide how the children fits the parent, but let the user free to place the parent in his own screen.
2 bugs found. > recompile ... 65534 bugs found. :doh: