Advertisement

Modalless CColorDialog

Started by May 17, 2000 02:55 PM
3 comments, last by NextS 24 years, 9 months ago
Yes, I want to use the CColorDialog in my program, but this useless thing only allows to be used as a Modal Dialog. Any Ideas how to extend functionality to non-Modal would be appreciated. NextS
oooooooh, MFC question...

I usually use the modal version, but my guess is to just derive a custom class from CColorDialog and modify that. Same goes with CFileDialog, etc., when you wish to modify them.

-----------------------------------------------------------
PCMCIA - People Can't Memorize Computer Industry Acronyms
ISDN - It Still Does Nothing
APPLE - Arrogance Produces Profit-Losing Entity
SCSI - System Can't See It
DOS - Defunct Operating System
BASIC - Bill's Attempt to Seize Industry Control
IBM - I Blame Microsoft
DEC - Do Expect Cuts
CD-ROM - Consumer Device, Rendered Obsolete in Months
OS/2 - Obsolete Soon, Too.
WWW - World Wide Wait
MACINTOSH - Most Applications Crash; If Not, The Operating System Hangs
Advertisement
Yeah, I read something about Dialog templates...

But how do I use them ?

NextS
You don''t need to create a dialog template (altough if you''re in MFC and you don''t know what they are, you need to find out, kwik! ), just derive a new class from CColorDialog and override some virtual functions, etc.

Just goto the option to create a new MFC class, and where is asks you what class to derive from, just pick CColorDialog. I never really had to override CColorDialog or any predifines dialog template classes, so im afraid i can''t give you any more specific information.
Drop by www.codeguru.com they have several examples of different types of color dialogs, complete with source.
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~

This topic is closed to new replies.

Advertisement