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

C / C++ / MFC

 
Generaldialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 5:21
professionalJoan M28-Mar-03 5:21 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Big Art28-Mar-03 5:33
Big Art28-Mar-03 5:33 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 5:39
professionalJoan M28-Mar-03 5:39 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Big Art28-Mar-03 5:57
Big Art28-Mar-03 5:57 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 6:15
professionalJoan M28-Mar-03 6:15 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Big Art28-Mar-03 6:51
Big Art28-Mar-03 6:51 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 7:05
professionalJoan M28-Mar-03 7:05 
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Big Art28-Mar-03 7:19
Big Art28-Mar-03 7:19 
Sorry, I thought you wanted it as a background on your dialog.
What you need to do is change the code in OnPaint. This is where the size of the image is being computed when the dialog is resized. Instead of GetClentRect(..) just specify the fixed size of the rectange you want to fill in the FillRect(..)


OnPaint(..)

//Paint the background with the image brush
//CRect rcClient; //Modify this to be the rectangle you want
//GetClientRect(&rcClient); //Block this
dc.FillRect(&rcClient,&m_brush);

Art
GeneralRe: dialog editor question (fine tuning the position of one control) Pin
Joan M28-Mar-03 7:27
professionalJoan M28-Mar-03 7:27 
GeneralMutual exclusion Pin
act_x28-Mar-03 5:20
act_x28-Mar-03 5:20 
GeneralRe: Mutual exclusion Pin
Neville Franks28-Mar-03 10:08
Neville Franks28-Mar-03 10:08 
GeneralWindows Registry blues Pin
fd975028-Mar-03 5:02
professionalfd975028-Mar-03 5:02 
GeneralRe: Windows Registry blues Pin
Chris Losinger28-Mar-03 5:20
professionalChris Losinger28-Mar-03 5:20 
GeneralRe: Windows Registry blues Pin
Big Art28-Mar-03 5:22
Big Art28-Mar-03 5:22 
GeneralRe: Windows Registry blues Pin
fd975030-Mar-03 20:07
professionalfd975030-Mar-03 20:07 
QuestionHowto configure doxygen ? Pin
yarp28-Mar-03 5:00
yarp28-Mar-03 5:00 
AnswerRe: Howto configure doxygen ? Pin
Andreas Saurwein28-Mar-03 5:05
Andreas Saurwein28-Mar-03 5:05 
GeneralRe: Howto configure doxygen ? Pin
yarp28-Mar-03 7:10
yarp28-Mar-03 7:10 
Questionhow to add a bitmap.. Pin
liquidsnake18328-Mar-03 4:50
liquidsnake18328-Mar-03 4:50 
AnswerRe: how to add a bitmap.. Pin
Joan M28-Mar-03 5:42
professionalJoan M28-Mar-03 5:42 
Questionoutput iterators? Pin
Andreas Saurwein28-Mar-03 4:44
Andreas Saurwein28-Mar-03 4:44 
AnswerRe: output iterators? Pin
valikac28-Mar-03 4:53
valikac28-Mar-03 4:53 
GeneralRe: output iterators? Pin
Andreas Saurwein28-Mar-03 5:02
Andreas Saurwein28-Mar-03 5:02 
GeneralRe: output iterators? Pin
Daniel Turini28-Mar-03 6:25
Daniel Turini28-Mar-03 6:25 
GeneralRe: output iterators? Pin
Joao Vaz28-Mar-03 6:51
Joao Vaz28-Mar-03 6:51 

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.