Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: CFormView control sizing Pin
Manmohan2924-Aug-11 22:31
Manmohan2924-Aug-11 22:31 
GeneralRe: CFormView control sizing Pin
Rage24-Aug-11 23:31
professionalRage24-Aug-11 23:31 
GeneralRe: CFormView control sizing Pin
Manmohan2924-Aug-11 23:33
Manmohan2924-Aug-11 23:33 
GeneralRe: CFormView control sizing Pin
Rage24-Aug-11 23:39
professionalRage24-Aug-11 23:39 
GeneralRe: CFormView control sizing Pin
Manmohan2925-Aug-11 0:05
Manmohan2925-Aug-11 0:05 
GeneralRe: CFormView control sizing Pin
Rage25-Aug-11 0:11
professionalRage25-Aug-11 0:11 
QuestionAmbiguity of 'this' and 'member function' [modified] Pin
Dean Seo24-Aug-11 15:12
Dean Seo24-Aug-11 15:12 
AnswerRe: Ambiguity of 'this' and 'member function' Pin
xrg_soft@163.com24-Aug-11 19:32
xrg_soft@163.com24-Aug-11 19:32 
GeneralRe: Ambiguity of 'this' and 'member function' Pin
Dean Seo24-Aug-11 20:53
Dean Seo24-Aug-11 20:53 
GeneralRe: Ambiguity of 'this' and 'member function' Pin
xrg_soft@163.com24-Aug-11 21:42
xrg_soft@163.com24-Aug-11 21:42 
GeneralRe: Ambiguity of 'this' and 'member function' Pin
Dean Seo24-Aug-11 22:36
Dean Seo24-Aug-11 22:36 
AnswerRe: Ambiguity of 'this' and 'member function' Pin
CPallini24-Aug-11 21:34
mveCPallini24-Aug-11 21:34 
GeneralRe: Ambiguity of 'this' and 'member function' Pin
Dean Seo24-Aug-11 22:37
Dean Seo24-Aug-11 22:37 
Questionfind task manager process Pin
trioum24-Aug-11 7:02
trioum24-Aug-11 7:02 
AnswerRe: find task manager process Pin
Code-o-mat24-Aug-11 7:19
Code-o-mat24-Aug-11 7:19 

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.