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

C / C++ / MFC

 
GeneralADO Parameters Pin
Richard Hudson21-May-01 22:46
Richard Hudson21-May-01 22:46 
GeneralRe: ADO Parameters Pin
John M. Drescher22-May-01 9:31
John M. Drescher22-May-01 9:31 
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 
The paint handler effects how the area is painted, not how big the dialog actually is. The handler under the check for IsIconic draws the icon.

You need to over ride OnInitDialog, where you can do what I suggested ( get the dimensions using GetSystemMetrics and call MoveWindow ), although MapDialogRect looks like a better idea, I have never used it before so I cannot comment. ( I intend to though, it looks useful ).

I'd suggest trying MapDialogRect first, and doing it in OnInitDialog.

Christian

#include "std_disclaimer.h"
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 
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 

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.