|
propSheet.m_psh.dwFlags |= PSH_NOAPPLYNOW | PSH_PROPTITLE | PSH_HASHELP ;
I forgot to add this line
That should make it work, I hope
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
Hi,
Did you get this working, ive got the same problem.
Cheers,
Andy.
|
|
|
|
|
I need to create flat looking dialog box with close button and caption.
It is Pop up window. I tried creating it with Border option "None" but then it does not give close button and caption? What do I do to get completely flat dialog box (No 3D look)?
|
|
|
|
|
Are you calling Enable3dControls() or Enable3dControlsStatic() in your CWinApp's code?
|
|
|
|
|
I am using this...
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
I have linked MFC statically...
To understand what kind of dialog box i need please see screen shot http://www.bitdefender.com/bd/site/support.php?menu_id=13&f_id=1
I need dialog box something like these
|
|
|
|
|
mfclearner wrote:
I am using this...
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
So remove it.
|
|
|
|
|
Removing above statements did not make any difference
|
|
|
|
|
The screenshots from the link you gave look absolutely like an owner drawn window.
So, for example you can remove the regular borders and caption and painting your own non-client area. For sure you must simulate the non-client events so your "skinned" app behaves like a regular app (e.g. moving the window around by clicking and holding the LButton on the caption,...).
Looking at bit more at the screenshots, the background of the dialog and the buttons are also skinned. Skinning the background is easy and for the buttons you can use e.g. http://www.codeproject.com/buttonctrl/cxskinbutton.asp?target=cxskinbutton[^]
In a few weeks, I will release a small shareware app, that also uses this owner drawn technique (combined with regions)... if you want to see a sample screenshot to see what can be done go to: http://www.oddgravity.de[^] (Sorry, until now I had no time for building my site )
|
|
|
|
|
Windows won't do that for you. You will have to do all the drawing yourself.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
DavidCrow wrote:
Are you calling Enable3dControls() or Enable3dControlsStatic() in your CWinApp's code?
David
I believe both of those calls are now obsolete and are now left only for backwards compatibility. I do not think they have any actual effect on what your windows and dialogs look like
Nish
"I'm a bit bored at the moment so I'm thinking about writing a new programming language" - Colin Davies
My book :- Summer Love and Some more Cricket [New Win]
Review by Shog9 Click here for review[NW]
|
|
|
|
|
With VS6, they have a major effect. Leave 'em out and you get a pretty vanilla dialog.
|
|
|
|
|
|
I am having trouble adding a browse button to my application. Can anyone help?
Thanks
|
|
|
|
|
Tadpole wrote:
I am having trouble...
Like what?
|
|
|
|
|
I have added a button and edited the name in the resource edits to make it say "Browse," but I do not know where to go from here... Do I need to add a handler or a class? I'm pretty much a newbie at MFC... and I dont know which route to take.
Thanks
|
|
|
|
|
Tadpole wrote:
Do I need to add a handler...
Yes. Use ClassWizard for this. It will add an ON_BN_CLICKED() handler in the message map.
|
|
|
|
|
Hi! Everybody:
I'm using TCP CSocket, I unpluged a client cable connected to the server intentionlly. But server can not detected such event, and kept waiting for the return from Sending function untill the error message appeared. I just wonder how to detected such event that can cause the server crushed. It will be appreciated if someone can give me any advice?
Ray Li
|
|
|
|
|
What socket functions are you using?
- Anders
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hi! Anders:
I'm using Send function, if I unplug a client's cable, when server call Send function to send data to this client, it will wait there for over 15 seconds.
then I can know the error message returned from Send. I want to know if there is a way to detect the send error(or socket error) quickly.
Thanks
Ray
|
|
|
|
|
Hi,
How can I get a pointer to a pointer of an object in 1 line? What I want is this:
<br />
class A { int i; }<br />
<br />
A a;<br />
A** aa = &&A;<br />
But that doesn't work, otherwise I wouldn't have asked here I could ofcourse do
<br />
A a;<br />
A* aa = &a;<br />
A** aaa = &a;<br />
but that takes another line. Can it be done in 1 line? Thanks.
cheers,
roel
|
|
|
|
|
roel_ wrote:
A a;
A** aa = &&A;
should be
A a;
A** ppa = &&a;
|
|
|
|
|
To me only the following makes sense:
A a;
A* aa = &a;
A** aaa = &aa;
because to have a pointer to a pointer you must have declared memory to hold the first pointer. In this case aa must have a memory location. In a one liner how do you reserve space for aa ? If you don't declare space for aa what does aaa point to?
John
|
|
|
|
|
A is data, with a memory location.
&A is the memory location of A, and is an l-value.
&&A implies the 'address of' 'address of' A, or the address of an lvalue.
Which neither makes machine sense, nor is allowed or really possible.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Thanks for explaining it better than me. I knew that this did not make sense...
John
|
|
|
|
|
If you don't declare space for aa what does aaa point to?
Other process memory space and crash.
|
|
|
|