|
Looks like CS_DROPSHADOW, flag isnt defined in W2k, SystemParametersInfo[^]
MSDN wrote: SPI_SETDROPSHADOW Enables or disables the drop shadow effect. Set pvParam to TRUE to enable the drop shadow effect or FALSE to disable it. You must also have CS_DROPSHADOW in the window class style.
Windows 2000: This value is not supported until Windows XP.
PJ Arends wrote: not crash the entire app. It certainly would have been easier to debug
It's more fun when seemingly simple stuff crashes everything. Would you have looked at a memory dump other wise?
I of coarse just like you would have expected it to just fail at the undefined feature.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Peter Weyzen wrote: What's the value of IDR_MAINFRAME?
128, the standard MFC value.
Sorry I forgot to add that earlier.
|
|
|
|
|
I have a series of pages in a wizard; when I press the "next" button to go to the next page, I can validate the current page values in the OnWizardNext and return -1 to stay on the same page if there are some bad values on the page.
but, when I'm at the last page, there's the "Finish" button, and will generate an OnWizardFinish but if there are invalide values on the last page, there is no way (*) of preventing the wizard to finish ( stay on the current page )
(*) I'm certain that there is a way to do it, that's why I'm asking, I think I could disable the "Finish" button and enable it if all my values are valid.
Thanks.
Max.
|
|
|
|
|
What happens if you return FALSE from OnWizardFinish() ? The docs say it prevents the property sheet from being destroyed, but is that the same as leaving the page open and usable?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am using VS.NET 2003. I have placed a DateTimePicker and am using time. When I click on the HH field, I can not click (using mouse)on the SS field. I have to exit the dialog then come back in. I realize I can use the keyboard left and right arrows but can I use the mouse to click on the fields after the first is selection.
|
|
|
|
|
how to get column count of CListCtrl?
or by any win32 function?
thx
|
|
|
|
|
See
<br />
CHeaderCtrl* m_Header=(CHeaderCtrl*)m_List1.GetDlgItem(0); <br />
int nCount = m_Header->GetItemCount(); <br />
|
|
|
|
|
WhiteSky wrote: CHeaderCtrl* m_Header=(CHeaderCtrl*)m_List1.GetDlgItem(0);
int nCount = m_Header->GetItemCount();
Or a slightly more readable way:
CHeaderCtrl* pHeader = m_List.GetHeaderCtrl();
int Count = pHeader->GetItemCount();
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
yes,
|
|
|
|
|
Sir,
I want to make the setup of my application in vc++6.0.please help.
Thanks
|
|
|
|
|
|
The Professional version of VC6 came with an optional package for creating InstallShield installation exe's. It will integrate with the IDE and is fairly simple to use for most applications.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
When running my programs in debug mode (not in the debugger) is it possible to ouput strings to the debug window still? Or any other similar function? OutputDebugString() only seems to work when stepping through the code.
|
|
|
|
|
You have to use F5, not Ctrl+F5, to see output from OutputDebugString() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I already know that, as stated in my origional question. I am looking for a similar feature which will do the same job without stepping through the code (Ctrl+F5).
I'm thinking a quick way to do this would be to create a new console window and send the strings to that as opposed to the debugger.
|
|
|
|
|
waldermort wrote: I already know that, as stated in my origional question. I am looking for a similar feature which will do the same job without stepping through the code (Ctrl+F5).
Stepping through the code is not required.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
yeah, but only if there are no breakpoints in the path of execution.
I thought that maybe VS++ would have added the feature I am looking for, since I'm building with their tool it's only logical to assume I will also be debugging with it. Sometimes, especially with many loops, it's kinda hard to spot where an error occurs, but if the output is going to the window, like I want, atleast i could narrow it down a little.
|
|
|
|
|
|
I have a picture control on a dialog application.
My goal is to be able to paint the control area say White. Then write some text in black.
I retrieved a pointer dc to the picture control.
Then i did a GetClientRect to get the dimensions.
Now i do a FillSolidRect(pRect, RGB(255, 255, 255))
I figured that this should paint the picture control
This did not.
Then i tried to write the text by Creating a Pen in the color black
Then Using Drawtext from the dc to write out some text on the picture control
This did not work either.
This should be pretty easy so i must be using the wrong api's
Any ideas???
|
|
|
|
|
What are you trying to do exactly ? If you want to draw your own things on the picture control, then it is best to subclass it. Then, inside its OnPaint (or OnDraw, don't know exactly) you must put your drawing code. This function gets called each time the window needs repainting.
What functionalities of the picture control do you need exactly ? Wouldn't it be simpler to derive from a static control or simply from a CWnd object ?
|
|
|
|
|
Without seeing more code I can't say whats going wrong. I will have a guess at saying maybe you have got the wrong DC. Try calling FillRect() instead. Also for the text color, you don't need to select a pen, a simple call to SetTextColor() will do the job.
|
|
|
|
|
Can you show snippet code how do you use?
|
|
|
|
|
Hi
Does anyone knows how can I get the list of applications that appears when you try to open a file with a unregistered extension?
Thanks in advance
Sebastian
|
|
|
|
|
Sorry, I reread your question and realised I pointed you to the wrong location. For the "open with" list, open regedit and navigate to HKEY_USERS. You will see a few unique id strings which makes it hard to give you a specific location. Use the search feature and search for "openwithlist", it should bring up a list of file extensions and details for each program to use.
-- modified at 12:03 Friday 29th September, 2006
|
|
|
|