Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Terminate application during creation Pin
jhwurmbach8-Jan-07 5:38
jhwurmbach8-Jan-07 5:38 
AnswerThanks Pin
baerten9-Jan-07 21:35
baerten9-Jan-07 21:35 
QuestionADO cannot restore connection Pin
Daniel Kanev8-Jan-07 4:47
Daniel Kanev8-Jan-07 4:47 
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 
I built a demo project that using OLE-DB,I add two controls on my form
(Single Document),one is DataGrid,the other is ADODC,What my purpose is that I want to resize the size of the two controls when the form shows,the variables that connect to the two controls are m_DataGrid and m_AdoDC;
the code is as followed:
void CADO2View::OnSize(UINT nType, int cx, int cy)
{
int iHeight;
int iWidth;
CRect oRect;
COleDBRecordView::OnSize(nType, cx, cy);
if (m_AdoDC.m_hWnd==NULL||m_DataGrid.m_hWnd==NULL)
{
return;
}
else
{
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);
}
}
But the code doesn't work,so how to resize the controls when the form shows?

Nothend







-- modified at 19:51 Monday 8th January, 2007
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 
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 

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.