Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: symreds

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,508

    Re: MFC Document changed

    It works, except that this update is not on application focus, but on Document switching. Anyway, I put this code in CMainFrame::OnActivateApp and it works perfectly!
    Thanks a lot.
  2. Replies
    2
    Views
    1,508

    MFC Document changed

    Hi everyone,
    I created a MFC MDI Application. I want to manage it in order to check, every time a View get focus, that its Document has been changed or not (for example using another hinstance of...
  3. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    Post #18 (of course without initial GetDlgItem()...)

    That code is into MyDialog::OnInitDialog()
  4. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    Sorry, typo error, I mean CComboBox::AddString() (without "s")
  5. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    Ok... got it, now the application doesn't crash anymore (and I hit the breakpoint inside PreSubclassWindow()!) but now AddStrings() is no more working: I created an empty combo... I'm going to...
  6. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    Ok, I'm trying to create a control member variable...
    I use VS2010 => Class View => I find my dialog class => right click => then? (is this the right procedure?)
  7. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    Declaration/definition of PreSubclassWindow are in CTooltipComboBox.h/.cpp

    Anyway, I've always used GetDlgItem instead of a control variable... I think it's the same...
  8. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    Of course I cannot post my code here because my company has rights on it. Anyway the code is more or less this:



    CTooltipComboBox *pCombo = (CTooltipComboBox*)GetDlgItem( IDC_... ); // IDC_.......
  9. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    ...but virtual PreSubclassWindow is already implemented in the code we download. I don't know how to do it "correctly".
  10. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    The code we can download does not compile because m_lstCombo.CreateEx() has 7 parameters instead of 5. For this reason I changed the code in this way



    m_lstCombo.CreateEx( 0, dwStyle, rc, this,...
  11. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    In the first message of this thread I posted this link, telling that is not working: http://www.codeguru.com/cpp/controls/combobox/tooltips/article.php/c4949

    at the end of the article there's a...
  12. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    void CTooltipComboBox::PreSubclassWindow()
    {
    CRect rc( 0, 0, 10, 10 );
    DWORD dwStyle = WS_POPUP | WS_BORDER | LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_SINGLESEL | LVS_OWNERDATA;...
  13. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    1 I don't know, I only reported the call made in CTooltipComboBox class found at that link (that is different to CListCtrl::CreateEx).

    2 I answered to your questions.
    2.3) I created a dummy...
  14. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    1 Dialog called in a MDI application
    2 Resource Editor
    3 I've just created a method having the same code of PreSubclassWindow() and I've called it.
    4 m_lstCombo.CreateEx( 0, WC_LISTVIEW, NULL,...
  15. Replies
    28
    Views
    3,248

    Re: Create Combobox with ToolTips

    PreSubclassWindow() is not automatically called, for this reason m_lstCombo is not initialized and also CreateEx() has wrong arguments.

    Also creating MyPreSubclassWindow() [equal to...
  16. Replies
    28
    Views
    3,248

    Create Combobox with ToolTips

    Hi everyone,
    I must create a Combobox having ToolTips. I saw this article http://www.codeguru.com/cpp/controls/combobox/tooltips/article.php/c4949 but it seems not working.
    Tooltip text and its...
  17. Replies
    15
    Views
    4,940

    Re: OnInitDialog not called

    But I've got the answer! :D
    Set m_bVistaStyle to FALSE.
  18. Replies
    15
    Views
    4,940

    Re: OnInitDialog not called

    UP - I've got the same problem.
  19. Replies
    3
    Views
    1,892

    Re: CMFCToolBar changing Windows style

    nobody?
  20. Replies
    3
    Views
    1,892

    Re: CMFCToolBar changing Windows style

    Alternatively, can you tell me which CFrameWnd event is triggered by changing style?
  21. Replies
    3
    Views
    1,892

    CMFCToolBar changing Windows style

    Hi everyone,
    my application has two CMFCToolBars: the one above filled with icons, the other filled with a bmp. Changing Windows style (for example from Basic to Classic) the toolbar filled with the...
  22. Replies
    1
    Views
    1,840

    Re: query Related to LoadImage function

    UP

    (same problem: i can only draw 32 bit-depth icons and I want to draw 16 ones).
  23. Replies
    1
    Views
    1,218

    Re: Autohidden CPane

    Never mind, I did it!
  24. Replies
    1
    Views
    1,218

    Autohidden CPane

    Hi all,
    maybe it's a very simple question, but I don't know how to do it. I want create a CPane window docked to MainFrm and having "autohide" as initial state. How can I do it?
    Thanks a lot.
  25. Replies
    3
    Views
    2,223

    Re: ComboBox with images

    nobody?
Results 1 to 25 of 30
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center