Click here to Skip to main content
15,895,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO Parameters Pin
Carlos Antollini22-May-01 9:40
Carlos Antollini22-May-01 9:40 
GeneralDateTime Class Pin
Gerry21-May-01 22:24
Gerry21-May-01 22:24 
GeneralHELP !!! fit size of dialod window to various resolutions Pin
21-May-01 21:48
suss21-May-01 21:48 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus21-May-01 23:27
protectorChristian Graus21-May-01 23:27 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
22-May-01 0:01
suss22-May-01 0:01 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus22-May-01 0:09
protectorChristian Graus22-May-01 0:09 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
22-May-01 3:05
suss22-May-01 3:05 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus22-May-01 3:29
protectorChristian Graus22-May-01 3:29 
I'm not sure why you expect this to work, but I'd suggest that when people give you advice you seek to learn *how* something works so that you don't have to ask again. You have copied a lot of code that came for free in your OnPaint, which, as I explained before, has nothing to do with what you want.

Here is the total solution. Please take the time to understand how it works, it is with the hope that people will *learn* that I spend time here answering questions.

MoveWindow(0, 0, GetSystemMetrics(SM_CXFULLSCREEN), GetSystemMetrics(SM_CYFULLSCREEN));

This moves the window to fit exactly onto the screen - you will probably have to subract from the last parameter in order to allow for the taskbar. I am not sure at this late hour how to go about figuring out the available screen area taking into account the taskbar - read up on GetSystemMetrics, it's probably there. Also, all of your individual objects in the dialog will remain where they are relative to 0,0 and may need to be resized. They can have MoveWindow called on them as well, by default they are derived from CWnd.

Hope this helps.

Christian

#include "std_disclaimer.h"
QuestionHow can I read data from EXEL file? Pin
21-May-01 21:00
suss21-May-01 21:00 
AnswerRe: How can I read data from EXEL file? Pin
Michael Martin21-May-01 22:30
professionalMichael Martin21-May-01 22:30 
Generalmedia control interface Pin
dearsrinu21-May-01 19:45
dearsrinu21-May-01 19:45 
GeneralOpenGL drawing Pin
v_krishnan21-May-01 19:14
v_krishnan21-May-01 19:14 
GeneralRe: OpenGL drawing Pin
Michael S. Scherotter21-May-01 19:51
Michael S. Scherotter21-May-01 19:51 
QuestionHow to trap CTRL+ALT+(key) in an MFC dlg-based app? Pin
Savage21-May-01 18:40
Savage21-May-01 18:40 
AnswerRe: How to trap CTRL+ALT+(key) in an MFC dlg-based app? Pin
Savage21-May-01 20:31
Savage21-May-01 20:31 
GeneralDirectshow Pin
21-May-01 17:40
suss21-May-01 17:40 
Questionany solution to 2038 bug? Pin
21-May-01 16:58
suss21-May-01 16:58 
AnswerRe: any solution to 2038 bug? Pin
21-May-01 17:07
suss21-May-01 17:07 
GeneralRe: any solution to 2038 bug? Pin
21-May-01 17:57
suss21-May-01 17:57 
QuestionHow run an exe file from my software??? Pin
21-May-01 15:26
suss21-May-01 15:26 
AnswerRe: How run an exe file from my software??? Pin
21-May-01 15:43
suss21-May-01 15:43 
GeneralRe: How run an exe file from my software??? Pin
21-May-01 16:03
suss21-May-01 16:03 
Generalselection in clistctrl Pin
Wayne Janaway21-May-01 14:55
Wayne Janaway21-May-01 14:55 
GeneralRe: selection in clistctrl Pin
Michael Dunn21-May-01 17:31
sitebuilderMichael Dunn21-May-01 17:31 
GeneralBinary CString reading error. Pin
A. Kadri21-May-01 14:43
A. Kadri21-May-01 14:43 

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.