Click here to Skip to main content
15,901,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pDoc and push_back problem Pin
Neville Franks4-Oct-02 22:49
Neville Franks4-Oct-02 22:49 
GeneralRe: pDoc and push_back problem Pin
nss5-Oct-02 1:24
nss5-Oct-02 1:24 
GeneralUsing a BHO to Insert Menu Into IE Pin
perlmunger4-Oct-02 14:48
perlmunger4-Oct-02 14:48 
Generala very weird problem regarding globals... Pin
nss4-Oct-02 14:47
nss4-Oct-02 14:47 
Generalmediaplayer Pin
moloko4-Oct-02 14:30
moloko4-Oct-02 14:30 
GeneralRe: mediaplayer Pin
Shog94-Oct-02 16:24
sitebuilderShog94-Oct-02 16:24 
GeneralHmmm...Error ! Pin
Nick Parker4-Oct-02 12:34
protectorNick Parker4-Oct-02 12:34 
GeneralRe: Hmmm...Error ! Pin
Joshua Nussbaum4-Oct-02 13:19
Joshua Nussbaum4-Oct-02 13:19 
GeneralRe: Hmmm...Error ! Pin
Nick Parker4-Oct-02 13:33
protectorNick Parker4-Oct-02 13:33 
Generalration button Pin
Michael Liu4-Oct-02 12:07
Michael Liu4-Oct-02 12:07 
GeneralRe: ration button Pin
Dimitri Rochette4-Oct-02 12:36
Dimitri Rochette4-Oct-02 12:36 
QuestionWeird CListView behavior, Bug? Pin
Anonymous4-Oct-02 10:49
Anonymous4-Oct-02 10:49 
AnswerNever mind Pin
Anonymous4-Oct-02 11:15
Anonymous4-Oct-02 11:15 
GeneralBeginner problem: drawing button in activex ctrl Pin
Daelus4-Oct-02 10:43
Daelus4-Oct-02 10:43 
GeneralColoured button Pin
User 98854-Oct-02 9:43
User 98854-Oct-02 9:43 
GeneralRe: Coloured button Pin
Chris Hambleton4-Oct-02 10:05
Chris Hambleton4-Oct-02 10:05 
GeneralRe: Coloured button Pin
User 98854-Oct-02 10:35
User 98854-Oct-02 10:35 
GeneralRe: Coloured button Pin
User 98854-Oct-02 10:37
User 98854-Oct-02 10:37 
GeneralMixing MSVCRT and MSVCRTD Pin
Aaron Schaefer4-Oct-02 9:36
Aaron Schaefer4-Oct-02 9:36 
Questionsorting CMenu items ? Pin
Anonymous4-Oct-02 9:09
Anonymous4-Oct-02 9:09 
GeneralCPropertyPage and modeless dialog Pin
Gero Gerber4-Oct-02 9:02
Gero Gerber4-Oct-02 9:02 
GeneralRe: I have the same problem in my program Pin
lucy29-Oct-02 3:05
lucy29-Oct-02 3:05 
GeneralRe: I found the solution Pin
lucy29-Oct-02 3:38
lucy29-Oct-02 3:38 
The dialog is not properly aligned at the first time only, is because that the property sheet was moved after the first active property page was shown. This is the message handling sequence:
CMyPropertyPage::OnShowWindow()
{
    // align the modeless dialog
}
CMyView::OnInitialUpdate()
{
    // place the property sheet at the top left corner
    m_sheet.MoveWindow(&sheetRect, TRUE);
}


so the solution is: reshow the property page after the property sheet is moved to a correct position. My method is:
CMyView::OnInitialUpdate()
{
    // place the property sheet at the top left corner
    m_sheet.MoveWindow(&sheetRect, TRUE);

    m_sheet.GetActivePage()->SendMessage(WM_SHOWWINDOW, FALSE, 0);
    m_sheet.GetActivePage()->SendMessage(WM_SHOWWINDOW, TRUE, 0);
}


HTH.
GeneralA simple hooking problem Pin
generic_user_id4-Oct-02 8:50
generic_user_id4-Oct-02 8:50 
GeneralRe: A simple hooking problem Pin
Scott H. Settlemier4-Oct-02 10:22
Scott H. Settlemier4-Oct-02 10:22 

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.