Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how compiler differentiates inline virtual function? Pin
Niklas L25-Aug-11 21:36
Niklas L25-Aug-11 21:36 
GeneralRe: how compiler differentiates inline virtual function? Pin
CPallini25-Aug-11 21:50
mveCPallini25-Aug-11 21:50 
GeneralRe: how compiler differentiates inline virtual function? Pin
Stefan_Lang25-Aug-11 22:31
Stefan_Lang25-Aug-11 22:31 
AnswerRe: how compiler differentiates inline virtual function? Pin
Stefan_Lang25-Aug-11 3:34
Stefan_Lang25-Aug-11 3:34 
QuestionHow to get attachment filename without download attachment file? Pin
R_K25-Aug-11 2:39
R_K25-Aug-11 2:39 
QuestionRe: How to get attachment filename without download attachment file? Pin
MicroVirus25-Aug-11 2:41
MicroVirus25-Aug-11 2:41 
AnswerRe: How to get attachment filename without download attachment file? Pin
R_K25-Aug-11 5:24
R_K25-Aug-11 5:24 
GeneralRe: How to get attachment filename without download attachment file? Pin
enhzflep25-Aug-11 6:43
enhzflep25-Aug-11 6:43 
QuestionProblem in accessing virtual hard as local hard disk Pin
Chattha1125-Aug-11 1:27
Chattha1125-Aug-11 1:27 
AnswerRe: Problem in accessing virtual hard as local hard disk Pin
Code-o-mat25-Aug-11 7:42
Code-o-mat25-Aug-11 7:42 
Questiondetect memory leak Pin
zon_cpp25-Aug-11 0:09
zon_cpp25-Aug-11 0:09 
GeneralRe: detect memory leak Pin
Rage25-Aug-11 0:22
professionalRage25-Aug-11 0:22 
AnswerRe: detect memory leak Pin
Alan Balkany25-Aug-11 5:07
Alan Balkany25-Aug-11 5:07 
AnswerRe: detect memory leak Pin
Pravin Patil, Mumbai25-Aug-11 20:37
Pravin Patil, Mumbai25-Aug-11 20:37 
AnswerRe: detect memory leak Pin
Cheongwadae26-Aug-11 16:55
Cheongwadae26-Aug-11 16:55 
QuestionHow to increate network transfer speed? Pin
yu-jian24-Aug-11 21:33
yu-jian24-Aug-11 21:33 
AnswerRe: How to increate network transfer speed? Pin
enhzflep24-Aug-11 21:45
enhzflep24-Aug-11 21:45 
AnswerRe: How to increate network transfer speed? Pin
xrg_soft@163.com24-Aug-11 21:55
xrg_soft@163.com24-Aug-11 21:55 
AnswerRe: How to increate network transfer speed? Pin
Charles Oppermann26-Aug-11 10:40
Charles Oppermann26-Aug-11 10:40 
QuestionCFormView control sizing Pin
Manmohan2924-Aug-11 21:33
Manmohan2924-Aug-11 21:33 
AnswerRe: CFormView control sizing [modified] Pin
xrg_soft@163.com24-Aug-11 21:52
xrg_soft@163.com24-Aug-11 21:52 
GeneralRe: CFormView control sizing Pin
Manmohan2924-Aug-11 22:33
Manmohan2924-Aug-11 22:33 
GeneralRe: CFormView control sizing [modified] Pin
xrg_soft@163.com25-Aug-11 4:10
xrg_soft@163.com25-Aug-11 4:10 
I guess you do not catch all my meaning.

If you just set the grid position in OnInitialUpdate, then even it works. There still some problem after you resize your application.

To make sure it works in all case, you must do it inside OnSize

C++
CMembersView::OnSize:
CWnd *pGridCtrl = this->GetDlgItem(IDC_MEMBERSGRID);
ASSERT(pGridCtrl);		// Must exist
if ( ::IsWindow(pGridCtrl->GetSafeHwnd()) )
{
    // assume you need to move the grid to the left half of CMembersView
    CRect rctClient;
    this->GetClientRect(&rctClient);
    pGridCtrl->MoveWindow(0, 0, rctClient.Width()/2, rctClient.Height());
}


modified on Thursday, August 25, 2011 10:19 AM

GeneralRe: CFormView control sizing Pin
Manmohan2925-Aug-11 19:42
Manmohan2925-Aug-11 19:42 
GeneralRe: CFormView control sizing Pin
Rage24-Aug-11 22:17
professionalRage24-Aug-11 22:17 

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.