Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionForcing cursur to stay in CEdit Pin
Shay Harel8-Jan-07 4:21
Shay Harel8-Jan-07 4:21 
AnswerRe: Forcing cursur to stay in CEdit [modified] Pin
CPallini8-Jan-07 4:29
mveCPallini8-Jan-07 4:29 
GeneralRe: Forcing cursur to stay in CEdit Pin
toxcct8-Jan-07 4:35
toxcct8-Jan-07 4:35 
JokeOK teacher! Pin
CPallini8-Jan-07 7:28
mveCPallini8-Jan-07 7:28 
QuestionProblem using then event of OnSize Pin
Nothend8-Jan-07 3:56
Nothend8-Jan-07 3:56 
AnswerRe: Problem using then event of "OnSize" Pin
Cedric Moonen8-Jan-07 4:10
Cedric Moonen8-Jan-07 4:10 
GeneralRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 13:50
Nothend8-Jan-07 13:50 
AnswerRe: Problem using then event of "OnSize" Pin
Cedric Moonen8-Jan-07 4:19
Cedric Moonen8-Jan-07 4:19 
Well, I didn't look at all the details of your code for my previous answer (your explanation was a bit vague). But I think the problem is here:


Nothend wrote:
m_AdoDC.GetClientRect(oRect);
iHeight=oRect.Height();
iWidth=oRect.Width();
m_AdoDC.MoveWindow(0,0,iWidth,iHeight,TRUE);
m_DataGrid.MoveWindow(0,iHeight,cx,xy,TRUE);


You said that m_AdoDC is a member of your class, so it will never resize. The only thing that is resizing is your view. So what you need to do is retrieve the new size of your view (using GetClientRect) and then calculate the new sizes of the two other controls.


Cédric Moonen
Software developer

Charting control [v1.1]

GeneralRe: Problem using then event of "OnSize" Pin
Nothend8-Jan-07 13:52
Nothend8-Jan-07 13:52 
GeneralRe: Problem using then event of "OnSize" Pin
Hamid_RT8-Jan-07 17:38
Hamid_RT8-Jan-07 17:38 
QuestionRe: Problem using then event of OnSize Pin
Hamid_RT8-Jan-07 17:37
Hamid_RT8-Jan-07 17:37 
AnswerRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 18:33
Nothend8-Jan-07 18:33 
GeneralRe: Problem using then event of OnSize Pin
Hamid_RT8-Jan-07 19:15
Hamid_RT8-Jan-07 19:15 
GeneralRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 20:04
Nothend8-Jan-07 20:04 
GeneralRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 20:09
Nothend8-Jan-07 20:09 
AnswerRe: Problem using then event of OnSize Pin
prasad_som8-Jan-07 20:00
prasad_som8-Jan-07 20:00 
GeneralRe: Problem using then event of OnSize Pin
Nothend8-Jan-07 20:17
Nothend8-Jan-07 20:17 
QuestionResponding to TAB in CEdit Pin
Shay Harel8-Jan-07 3:38
Shay Harel8-Jan-07 3:38 
AnswerRe: Responding to TAB in CEdit Pin
CPallini8-Jan-07 3:55
mveCPallini8-Jan-07 3:55 
GeneralRe: Responding to TAB in CEdit Pin
Shay Harel8-Jan-07 4:08
Shay Harel8-Jan-07 4:08 
QuestionHow can i use Image magick in MFC? Pin
$uresh $hanmugam8-Jan-07 2:33
$uresh $hanmugam8-Jan-07 2:33 
AnswerRe: How can i use Image magick in MFC? Pin
Chris Losinger8-Jan-07 3:35
professionalChris Losinger8-Jan-07 3:35 
GeneralRe: How can i use Image magick in MFC? Pin
$uresh $hanmugam8-Jan-07 22:12
$uresh $hanmugam8-Jan-07 22:12 
Questionprocess termination issue Pin
Raj Prathap8-Jan-07 2:25
Raj Prathap8-Jan-07 2:25 
AnswerRe: process termination issue Pin
Monty28-Jan-07 2:27
Monty28-Jan-07 2:27 

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.