Click here to Skip to main content
15,924,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSDI Pin
will13839-Dec-02 5:03
will13839-Dec-02 5:03 
GeneralRe: SDI Pin
#realJSOP9-Dec-02 5:19
professional#realJSOP9-Dec-02 5:19 
GeneralRe: SDI Pin
will13839-Dec-02 5:37
will13839-Dec-02 5:37 
GeneralFull Screen Dialog Bug Pin
Scott H. Settlemier9-Dec-02 4:39
Scott H. Settlemier9-Dec-02 4:39 
GeneralRe: Full Screen Dialog Bug Pin
#realJSOP9-Dec-02 5:14
professional#realJSOP9-Dec-02 5:14 
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier9-Dec-02 5:24
Scott H. Settlemier9-Dec-02 5:24 
GeneralRe: Full Screen Dialog Bug Pin
mediamaster409-Dec-02 6:15
mediamaster409-Dec-02 6:15 
GeneralRe: Full Screen Dialog Bug Pin
Joan M9-Dec-02 20:23
professionalJoan M9-Dec-02 20:23 
I've had your same problem last week...

It's due to the system workarea.

You must resize the workarea at the beggining of your app. and resize again at the end of your app.

here's the code:
<br />
CRect rectWorkArea;<br />
<br />
rectWorkArea.left   = 0;<br />
rectWorkArea.top    = 0;<br />
rectWorkArea.right  = ::GetSystemMetrics(SM_CXSCREEN);<br />
rectWorkArea.bottom = ::GetSystemMetrics(SM_CYSCREEN);<br />
<br />
SystemParametersInfo(SPI_SETWORKAREA,0,&rectWorkArea,SPIF_SENDCHANGE);<br />


then you can resize your dialogs and windows as always...

NOTE:
I had to resize the windows using this:
<br />
this->SetWindowPos(&wndTopMost,0,0,::GetSystemMetrics(SM_CXSCREEN),::GetSystemMetrics(SM_CYSCREEN),SWP_SHOWWINDOW);<br />


TopMostFlag is an option...

this had to be done in order to avoid flickering when I used the common way of resizing...


Hope this helps...
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier10-Dec-02 4:01
Scott H. Settlemier10-Dec-02 4:01 
GeneralRe: Full Screen Dialog Bug Pin
mediamaster4010-Dec-02 4:23
mediamaster4010-Dec-02 4:23 
GeneralRe: Full Screen Dialog Bug Pin
Scott H. Settlemier10-Dec-02 6:41
Scott H. Settlemier10-Dec-02 6:41 
Generalfopen and CStringArray Pin
Anonymous9-Dec-02 3:09
Anonymous9-Dec-02 3:09 
GeneralRe: fopen and CStringArray Pin
Gary Kirkham9-Dec-02 3:25
Gary Kirkham9-Dec-02 3:25 
GeneralRe: fopen and CStringArray Pin
Nitron9-Dec-02 4:10
Nitron9-Dec-02 4:10 
GeneralRe: fopen and CStringArray Pin
Christian Graus9-Dec-02 8:59
protectorChristian Graus9-Dec-02 8:59 
GeneralRe: fopen and CStringArray Pin
Joe Woodbury9-Dec-02 19:18
professionalJoe Woodbury9-Dec-02 19:18 
Generalerror 1063 in StartServiceCtrlDispatcher Pin
maloo9-Dec-02 2:26
maloo9-Dec-02 2:26 
GeneralRe: error 1063 in StartServiceCtrlDispatcher Pin
Debs9-Dec-02 23:38
Debs9-Dec-02 23:38 
GeneralCTreeCtrl::OnLButtonUp doesn't get called Pin
Arjan Schouten9-Dec-02 2:22
Arjan Schouten9-Dec-02 2:22 
GeneralRe: CTreeCtrl::OnLButtonUp doesn't get called Pin
Tibor Blazko9-Dec-02 3:13
Tibor Blazko9-Dec-02 3:13 
GeneralRe: CTreeCtrl::OnLButtonUp doesn't get called Pin
Arjan Schouten9-Dec-02 3:30
Arjan Schouten9-Dec-02 3:30 
GeneralRe: CTreeCtrl::OnLButtonUp doesn't get called Pin
Tibor Blazko9-Dec-02 3:32
Tibor Blazko9-Dec-02 3:32 
GeneralTranslate Pin
hest9-Dec-02 1:43
hest9-Dec-02 1:43 
GeneralRe: Translate Pin
xi9049-Dec-02 1:51
xi9049-Dec-02 1:51 
GeneralRe: Translate Pin
jhwurmbach9-Dec-02 1:54
jhwurmbach9-Dec-02 1:54 

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.