Type: Posts; User: symreds
Search took 0.01 seconds.
April 17th, 2012, 03:02 AM
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.
April 13th, 2012, 02:38 AM
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...
October 19th, 2011, 10:07 AM
Post #18 (of course without initial GetDlgItem()...)
That code is into MyDialog::OnInitDialog()
October 19th, 2011, 09:58 AM
Sorry, typo error, I mean CComboBox::AddString() (without "s")
October 19th, 2011, 09:21 AM
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...
October 19th, 2011, 08:33 AM
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?)
October 19th, 2011, 07:58 AM
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...
October 19th, 2011, 07:36 AM
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_.......
October 19th, 2011, 06:19 AM
...but virtual PreSubclassWindow is already implemented in the code we download. I don't know how to do it "correctly".
October 19th, 2011, 05:43 AM
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,...
October 19th, 2011, 05:13 AM
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...
October 19th, 2011, 04:39 AM
CRect rc( 0, 0, 10, 10 );
DWORD dwStyle = WS_POPUP | WS_BORDER | LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_SINGLESEL | LVS_OWNERDATA;...
October 19th, 2011, 04:12 AM
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...
October 19th, 2011, 03:24 AM
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,...
October 18th, 2011, 03:33 PM
PreSubclassWindow() is not automatically called, for this reason m_lstCombo is not initialized and also CreateEx() has wrong arguments.
Also creating MyPreSubclassWindow() [equal to...
October 17th, 2011, 10:27 AM
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...
But I've got the answer! :D
Set m_bVistaStyle to FALSE.
UP - I've got the same problem.
February 28th, 2011, 05:20 AM
February 26th, 2011, 02:32 AM
Alternatively, can you tell me which CFrameWnd event is triggered by changing style?
February 25th, 2011, 11:24 AM
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...
February 22nd, 2011, 09:51 AM
(same problem: i can only draw 32 bit-depth icons and I want to draw 16 ones).
January 27th, 2011, 10:46 AM
January 24th, 2011, 08:32 AM
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.
September 13th, 2010, 09:03 AM
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!