|
Lilith.C wrote: C4786
'identifier' : identifier was truncated to 'number' characters in the debug information
That's harmless, you can turn it off.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Ford, what's this fish doing in my ear?
|
|
|
|
|
Hello.
When creating a MDI application (with MFC AppWizard VC++ 6.0) you have the choice of excluding the maximize/minimize boxes for the child frames.
When creating my MDI app, I chose to not have the maximize/minimize boxes, but to have the child frames start in 'maximize mode'. However, when the child frames are viewed in 'maximized mode', the non-themed minimize and maximize buttons are still drawn.
Is there a way to remove or at least disable the non-themed maximize/minimize buttons?
-----------------
Genaro
|
|
|
|
|
|
I tried that in the BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) function. However, that only removes the boxes if the child frame is not in 'maximized mode'. What function should I edit/override to also remove the non-themed buttons (those show when in maximized mode)?
Thank you very much,
-----------------
Genaro
|
|
|
|
|
|
Thank you very much for the help...
I am almost there. The only thing is that removing the WS_SYSMENU also removes the [x], which I would like to keep. Is it possible to do that?
Thanks,
-----------------
Genaro
|
|
|
|
|
picazo wrote: WS_SYSMENU also removes the [x],
Yeah that's why I told it's dirty.
Jesus Loves <marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I want to enable and disable a dialog control(check box,edit box) from another dialogue and a global function...
How can i???
|
|
|
|
|
|
God Bless u too!
cheerz bro!!!!!
rateep
:"faith, hope, love remain, these three.....; but the
greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
or use GetDlgItem(ID_OF_THE_CONTROL)->EnableWindow(BOOL)
eg:
GetDlgItem(IDC_CHECK_DISABLE_HSC)->EnableWindow(FALSE);
cheerz!
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
Hello everyone!
Alright... here's how I want to get my bitmap:
res://Graphics.dll/RT_BITMAP/101
That doesn't seem to work right, neither in my program nor in Internet Explorer (yes, I'm plugging the full path with forward slashes and everything)...
Does anyone know what's wrong? I didn't compress my DLL...
Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
You can't use the RT_BITMAP - The C preprocessor knows that this means but to the "res:" protocol it means nothing. Replace it with 2.
Steve
|
|
|
|
|
this[^] link says that the url that you have specified is not correct.
-Prakash
|
|
|
|
|
Hmm... I've just tried these:
res://Graphics.dll/2/102
res://Graphics.dll/#2/#102
res://Graphics.dll/&232/&23102
I also tried including full path (on all of them), and I tried them both on my program and on Internet Explorer... is there something wrong still? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
Try this to prove to youself that it can work:
res://shell32.dll/2/130 (I'm assuming you're using XP).
You can simply type it into to IE address bar.
I'd suggest you check your IDs.
Steve
|
|
|
|
|
I have a program in which items are added to a listcontrol box. I run the program once, add some items to the list and then exit from the program. The requirement is that, when i run the program again, the listbox should show the items i added in the previous run. What should i do???
God is Merciful...
|
|
|
|
|
|
Shudder.
I don't know what the standard practice is, but the thought of every program using the registry to store "junk" scares me. No wonder my registry is so full of junk.
Are there any quidelines which say what a program should store in registry, and what should be stored in a data file?
|
|
|
|
|
NormanS wrote: but the thought of every program using the registry to store "junk" scares me
Nice to hear that.
NormanS wrote: Are there any quidelines which say what a program should store in registry, and what should be stored in a data file?
There are no guidelines as such. But normally applications store their settings inside the registry (could be because it's easy to store and retrieve). Or else you've got to store it somewhere. Create your own dat file or opt file or just write these values inside a collection and serialize them (this is what I do).
Jesus Loves <marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
A DAT file sounds better to me. Less stuff in registry!
The original poster will have to balance the amount of stuff which needs to be stored with the convenience of using registry.
|
|
|
|
|
What's wrong with good old .INI files?
Steve
|
|
|
|
|
|
when you use CColorDialog dlg ; how do you get the rgb value of the color you picked?
|
|
|
|
|