Type: Posts; User: VladimirF
Search took 0.11 seconds.
March 23rd, 2015, 09:21 AM
Where did you learn this "creative" technique?
March 17th, 2015, 11:54 AM
This, unfortunately, will fail if you manage to post two or more messages before your window proc will get to process them.
March 13th, 2015, 12:39 PM
You are welcome. Glad my crystal ball still works :)
March 13th, 2015, 09:28 AM
I respectfully disagree. In fact, I made a short demo yesterday to prove it:
Simple MFC SDI app, modal About dialog creates modeless secondary dialog. If you set the main app window as the parent of...
March 13th, 2015, 09:15 AM
It most certainly is not the same strange :) The stated 24hrs periodicity implies correlation with date.
Agree with everything. As was suggested above, most decent logging libraries include...
March 13th, 2015, 09:04 AM
You got it. Just some minor corrections:
- EnableWindow() is not a posted message, it is processed immediately;
- all messages will be processed by the main window's WindowProc; I use "eat message"...
March 12th, 2015, 04:33 PM
You are welcome, but I'm not too proud of that :)
If your processing involves some kind of a loop, I would move that message pump into that loop; that would make your app responsive.
March 12th, 2015, 04:07 PM
The requirement to close the log "after the 24 hrs from the time the file is opened" is strange. I would suggest to close it (and create a new one) at midnight, so that the file name actually matches...
March 12th, 2015, 03:51 PM
You could disable all controls right where you do it, then start a worker thread for your processing; when it is done - post some message to your main window and re-enable controls in that message...
March 12th, 2015, 01:27 PM
This comes up very often.
You are performing your task on the main UI thread. NO MESSAGES are processed until you return from your Window proc. In fact, your disabling/enabling of the child windows...
March 12th, 2015, 11:01 AM
The reason, most likely, is the wrong parenting of that modeless dialog. Since your code doesn't show how you specify the parent, I assume that you don't. The default is likely your main window,...
March 6th, 2015, 03:50 PM
I am pretty sure CBitmap's destructor will take care of that.
You can make sure by stepping into its code from your Dialog's destructor.
March 6th, 2015, 02:36 PM
1. I suspect the ASSERT is not on the lines you indicated, but on the previous ones with LoadBitmap().
2. CBitmap, most likely, asserts to indicate that there is a bitmap already loaded into that...
March 5th, 2015, 01:57 PM
Long Pointer to IDispatch COM interface.
You can use ComQIPtr class to convert it to Name if you need to.
March 5th, 2015, 11:27 AM
I would love to help, but I don't know what are these CXL... classes. And neither does Google :)
However, you may use trial-and-error method to figure it out.
Please see Names Object (Excel) - can...
March 5th, 2015, 10:12 AM
This is a cool idea (and a great simplification from Codeplug)! Unfortunately CodeGuru doesn't let me rate either of you guys :)
Quick question: don't you get an error:
error C2662: 'BOOL...
March 4th, 2015, 03:35 PM
Glad it worked.
Well, some might think that trying to double-click static control to get some action out of it is also not very intuitive.
However, did you know that a simple message box like...
March 4th, 2015, 02:51 PM
Does your CXLWorkbook have something like Names?
March 4th, 2015, 09:11 AM
Interesting. The subclassing and handling WM_LBUTTONDBLCLK message (without calling base class' CStatic::OnLButtonDblClk(nFlags, point);) works fine for me.
The copy obviously happens in CStatic...
February 18th, 2015, 03:55 PM
Really? That doesn't sound right. In fact, I did the suggested test (pressing E, C and U keys in the Notepad) and got all the characters OK, as expected.
The article explains how the keyboard "might...
February 18th, 2015, 01:20 PM
I would agree with you, 100%. Kinda… If we were comparing these two scenarios:
char* buffer = new char[some_length];
Mainly for two reasons:...
February 17th, 2015, 03:01 PM
Your "magic" with HWND was already commented on.
You start with char* in your Dump(), and you need LPCTSTR for m_listbox.AddString(); wrapping it into CString just to attach to a message is...
January 18th, 2015, 10:45 AM
FeinSoftware presents FeinWindows ™ version 2.0 - replacement windows manager for Microsoft Visual Studio 2012 and 2013.
Please visit http://www.FeinSoftware.com/FeinWindows for more details.
January 12th, 2015, 12:41 PM
That function would have to be called from the UI thread only - right?
January 1st, 2015, 09:08 PM
I invite your question, comments, suggestions, requests for other tools for Visual Studio, etc.
Please visit my forum at www.feinsoftware.com/FeinForum and my page at www.facebook.com/feinsoftware
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.