Type: Posts; User: Snakekaa
Search took 0.06 seconds.
Let suppose I do not have a document just open the app.
I have a method attached to a menu ID which changed File options width.
In that method I tried this:
Perhaps IDR_MAINFRAME is not...
I do not have another menu to replace with.
I just want to tell this menu that I don't need that width anymore.
I saw that this behaviour is the default one in Windows app, but I do not want it.
Where can I find that menu draw procedure?
To override menu for this issue is just too much.
Perhaps I can do it without overriding?
I tried this as you adviced me and still no effect.
Can anyone tell me where is the place the system computes necessary width in order for accelerators to be also displayed?
I think knowing this I...
I've already tried it, no use.
I derived a class from CRecentFileList in order to set the number of displayed chars for MRU.
The problem is that if I open the app with 256 set for this number (it is read from .ini file)...
February 15th, 2008, 09:05 AM
One more thing I want tot ask: how can I know which OS is running my software? I've tried WINVER, but when builds it gives me
February 15th, 2008, 08:56 AM
I've tried and it gave 1 as result.
I'm using SM_CYFRAME flag now; it gives me 8 and I subtract 2.
It was the most reliable value to use, I've tried different flags there.
February 15th, 2008, 07:57 AM
Yes, I can. in the attached image the part with red (made in paint) is to show the exactly place where the suplimentary border cause my problem.
kirants, I use GetWindowRect instead of...
February 14th, 2008, 08:58 AM
Hello to everyone!
I have a modless dialog and in some circumstances, at the bottom of it an other one is displayed as child dlg.
In XP, I have this code to set second dlg's position:
November 15th, 2007, 04:28 AM
I have some undo/redo operations which are done on CTRL+Z/CTRL+Y. Sometimes, when trying to allocate some members dynamically, an assertion in HeapAlloc comes in the front when in Debug mode.
September 27th, 2007, 05:08 AM
Sorry, I didn't seen the post date: September 20th, 1999, 06:45 PM. :(
I had the same issue on my own and found the solution described, so I thought it might be usefull.
September 27th, 2007, 05:01 AM
_AfxGetMouseScrollLines() is defined locally in viewscrl.cpp. Its code is:
UINT PASCAL _AfxGetMouseScrollLines()
static UINT uCachedScrollLines;
// if we've already got it and we're not...
September 19th, 2007, 02:12 AM
kirants, thank you for your answer! I solved these issues. In the app was used a wrong DC. The image was drawn on a surface's DC and I tried to draw the ellipse on the view's DC.
The bad effect...
September 18th, 2007, 04:24 AM
I have drawing problems with some code which works fine on other OS, but on Vista does not.
// creates a new pen
CPen PenW (PS_SOLID, 0, RGB (255, 255, 255)) ;
September 12th, 2007, 08:43 AM
WS_OVERLAPPEDWINDOW | ~WS_VISIBLE, NULL,
September 12th, 2007, 07:03 AM
I solve the "mistery"...so topic closed.
Anyway, I had the same .ocx for Release version registered. I registered the debug version with
but internally the old...
September 12th, 2007, 04:49 AM
I have an .ocx and an .exe using it. I set to start the .ocx without the .exe and put some breakpoints in the .ocx in order to debug it. But there become unavailable (set to "?"). I am using Visual...
September 25th, 2006, 07:49 AM
Thank you very much, gstercken.
Yes, I knew that AddToRecentFileList adds them in Recent file list, but I suspect adding them in Window menu is a side-effect.
September 25th, 2006, 07:22 AM
Cand anyone please tell me who is responsible for adding the document's name in Window menu from a multidocument MFC app?
Could it be AddToRecentFileList?
Thank you in advance!
August 1st, 2006, 04:50 AM
Perhaps this would help you to clarify your issue:
June 14th, 2005, 06:19 AM
In order to see the content of mat[i][j], you should use pointer arithmetics: so, mat[i][j] is similar to *(mat + i * n + j), where n is the number of columns your matrix has.
April 25th, 2005, 06:29 AM
I don't know eihter about such a tool. But if you need one, you can easily write a .cpp/.h files parser to count commented/uncommented lines.
April 4th, 2005, 07:57 AM
NormalizeRect() is invoked in order to be sure that the rectangle will have top smaller than bottom and left - smaller than right.
April 4th, 2005, 07:31 AM
Width and height will be always positive, but if you don't normalize rectangle and you don't intend to use Width() and Height() methods for CRect class, you should compute them as
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.