problem with CMFCOutlookBar hiding
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: problem with CMFCOutlookBar hiding

  1. #1
    Join Date
    Aug 2005
    Posts
    9

    Angry problem with CMFCOutlookBar hiding

    hi
    i make a new mfc sdi project as if embed a CMFCOutlookBar in this by wizard.
    two category is added by wizard in pane.

    tree.Create(dwTreeStyle, rectDummy, &bar, 1200);
    bNameValid = strTemp.LoadString(IDS_FOLDERS);
    ASSERT(bNameValid);
    pOutlookBar->AddControl(&tree, strTemp, 2, TRUE, dwStyle);

    calendar.Create(rectDummy, &bar, 1201);
    bNameValid = strTemp.LoadString(IDS_CALENDAR);
    ASSERT(bNameValid);
    pOutlookBar->AddControl(&calendar, strTemp, 3, TRUE, dwStyle);

    i comment AddControl and delete two category

    tree.Create(dwTreeStyle, rectDummy, &bar, 1200);
    bNameValid = strTemp.LoadString(IDS_FOLDERS);
    ASSERT(bNameValid);
    // pOutlookBar->AddControl(&tree, strTemp, 2, TRUE, dwStyle);

    calendar.Create(rectDummy, &bar, 1201);
    bNameValid = strTemp.LoadString(IDS_CALENDAR);
    ASSERT(bNameValid);
    // pOutlookBar->AddControl(&calendar, strTemp, 3, TRUE, dwStyle);

    i add custom category

    pdlgServers=new CServersDlg(&bar);
    pdlgServers->Create(IDD_DIALOG_SERVERS, &bar);
    bNameValid = strTemp.LoadString(IDS_SERVERS);
    ASSERT(bNameValid);
    pOutlookBar->AddControl(pdlgServers, strTemp, 2, TRUE, dwStyle);
    pdlgServers->ShowWindow(SW_SHOW);

    but this pane be hide.
    what is my bug?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: problem with CMFCOutlookBar hiding

    Quote Originally Posted by hessamini View Post
    i add custom category

    Code:
    	pdlgServers=new CServersDlg(&bar);
    	pdlgServers->Create(IDD_DIALOG_SERVERS, &bar);
    	bNameValid = strTemp.LoadString(IDS_SERVERS);
    	ASSERT(bNameValid);
    	pOutlookBar->AddControl(pdlgServers, strTemp, 2, TRUE, dwStyle);
    	pdlgServers->ShowWindow(SW_SHOW);
    but this pane be hide.
    what is my bug?
    Did you check the return values of
    Code:
    	bNameValid = strTemp.LoadString(IDS_SERVERS);
    and
    Code:
    	pOutlookBar->AddControl(pdlgServers, strTemp, 2, TRUE, dwStyle);
    Victor Nijegorodov

  3. #3
    Join Date
    Aug 2005
    Posts
    9

    Re: problem with CMFCOutlookBar hiding

    i don't think my problem be it. because if i run project once this pane is shown but from next run this pane will be hide. i think my problem is about change registry when i close project so on next run load new setting of registry and this pane can not be shown.

  4. #4
    Join Date
    Aug 2005
    Posts
    9

    Re: problem with CMFCOutlookBar hiding

    my problem do not solve . help me please.....

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: problem with CMFCOutlookBar hiding

    Quote Originally Posted by hessamini View Post
    i don't think my problem be it. because if i run project once this pane is shown but from next run this pane will be hide. i think my problem is about change registry when i close project so on next run load new setting of registry and this pane can not be shown.
    I don't care what you think. You must check the return values of the functions you call to be sure they succeded.
    As for registry - find where in registry your applicaton saves some settings and what settings there are.
    Victor Nijegorodov

  6. #6
    Join Date
    Aug 2005
    Posts
    9

    Re: problem with CMFCOutlookBar hiding

    i did check your needed. but any thing was ok. i think you did angry from me. i'm sorry for bad English. i can not describe very well . but i said :
    my project work very well when i don't comment
    // pOutlookBar->AddControl(&tree, strTemp, 2, TRUE, dwStyle);
    and
    // pOutlookBar->AddControl(&calendar, strTemp, 3, TRUE, dwStyle);
    but after comment these, third AddControl as if i wrote its:
    pOutlookBar->AddControl(pdlgServers, strTemp, 2, TRUE, dwStyle);
    does show for once run. means: after once run and close project and run again this pane not show even if i uncomment the two.
    I found a solution for return this pane : i remove item registry : [HKEY_CURRENT_USER\Software\Local AppWizard-Generated Applications\Sccm\Workspace\DockingManager-128] and pane show again.
    my Experience in vc++,mfc is about 8 years. but i can not solve a little problem . i am very gray. help me please.
    Last edited by hessamini; January 18th, 2014 at 07:59 AM.

  7. #7
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: problem with CMFCOutlookBar hiding

    Quote Originally Posted by hessamini View Post
    i did check your needed. but any thing was ok. i think you did angry from me. i'm sure for bad English.
    Don't worry! Your English is pretty good!
    And I am not angry at all!

    Quote Originally Posted by hessamini View Post
    I found a solution for return this pane : i remove item registry : [HKEY_CURRENT_USER\Software\Local AppWizard-Generated Applications\Sccm\Workspace\DockingManager-128] and pane show again.
    my Experience in vc++,mfc is about 8 years. but i can not solve a little problem . i am very gray. help me please.
    It is good that you found a solution (or, workaround)
    If don't want to dig deeper you can just use this workaround: delete theis registry key by application start!
    Victor Nijegorodov

  8. #8
    Join Date
    Aug 2005
    Posts
    9

    Re: problem with CMFCOutlookBar hiding

    ok thanks a lot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center