Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ODBC with list box how? Pin
Member 123981316-Jul-04 5:41
Member 123981316-Jul-04 5:41 
AnswerRe: ODBC with list box how? Pin
David Crow16-Jul-04 2:55
David Crow16-Jul-04 2:55 
GeneralCustom Control in a MFC Extension Dll Pin
Pradeep Shetye15-Jul-04 20:36
Pradeep Shetye15-Jul-04 20:36 
GeneralRe: Custom Control in a MFC Extension Dll Pin
ronhash15-Jul-04 20:58
ronhash15-Jul-04 20:58 
GeneralRe: Custom Control in a MFC Extension Dll Pin
Ambili15-Jul-04 21:36
Ambili15-Jul-04 21:36 
GeneralRe: Custom Control in a MFC Extension Dll Pin
ronhash17-Jul-04 21:26
ronhash17-Jul-04 21:26 
Generalmaking CColorDialog a child Pin
Omar Alvi15-Jul-04 20:30
Omar Alvi15-Jul-04 20:30 
GeneralRe: making CColorDialog a child Pin
Antti Keskinen15-Jul-04 22:50
Antti Keskinen15-Jul-04 22:50 
There is no way. The Common Dialogs are not designed to run as child windows. Microsoft calls this "Behaviour by design", and unfortunately there's nothing you can do about it.

If you're trying to build a Paint-like application that has a color selection window that the user can use to pick up pen/box colors or something like that, then the only way you can implement such a window is to create it yourself, bottom-up. I'm not sure if there are any examples available in Code Project, but creating it yourself is good practise anyway Smile | :)

To use the CColorDialog properly, you first create an object of CColorDialog, then call DoModal to display the color dialog. When user has selected color and dismisses the dialog screen, you can use the member functions of the class to retrieve the selected color. Do NOT call Create yourself, but allow the framework to do it for you.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
QuestionHow to display a graphic on the screen of a Pocket PC? Pin
twinkling15-Jul-04 19:51
twinkling15-Jul-04 19:51 
QuestionNo anwering my this question ...y? Pin
Zeeshan Bilal15-Jul-04 19:29
Zeeshan Bilal15-Jul-04 19:29 
AnswerRe: No anwering my this question ...y? Pin
Johan Rosengren15-Jul-04 21:18
Johan Rosengren15-Jul-04 21:18 
AnswerRe: No anwering my this question ...y? Pin
jmkhael15-Jul-04 22:14
jmkhael15-Jul-04 22:14 
QuestionHow to Display TIFF file in MFC applicatio.? Pin
mahatma_cis15-Jul-04 18:48
mahatma_cis15-Jul-04 18:48 
AnswerRe: How to Display TIFF file in MFC applicatio.? Pin
Sumit Kapoor15-Jul-04 21:13
Sumit Kapoor15-Jul-04 21:13 
GeneralRe: How to Display TIFF file in MFC applicatio.? Pin
mahatma_cis16-Jul-04 18:59
mahatma_cis16-Jul-04 18:59 
GeneralAddress Bar Pin
Liger_Zero_X15-Jul-04 16:55
Liger_Zero_X15-Jul-04 16:55 
GeneralRe: Address Bar Pin
ThatsAlok15-Jul-04 19:41
ThatsAlok15-Jul-04 19:41 
GeneralRe: Address Bar Pin
Liger_Zero_X15-Jul-04 21:34
Liger_Zero_X15-Jul-04 21:34 
GeneralRe: Address Bar Pin
David Crow16-Jul-04 3:01
David Crow16-Jul-04 3:01 
GeneralPointer Usage Pin
IceBerG7115-Jul-04 16:54
IceBerG7115-Jul-04 16:54 
GeneralRe: Pointer Usage Pin
Michael Dunn15-Jul-04 17:21
sitebuilderMichael Dunn15-Jul-04 17:21 
GeneralRe: Pointer Usage Pin
Anonymous15-Jul-04 18:38
Anonymous15-Jul-04 18:38 
GeneralRe: Pointer Usage Pin
Antti Keskinen15-Jul-04 19:57
Antti Keskinen15-Jul-04 19:57 
GeneralRe: Pointer Usage Pin
David Crow16-Jul-04 3:09
David Crow16-Jul-04 3:09 
GeneralRe: Pointer Usage Pin
digwizfox16-Jul-04 10:37
digwizfox16-Jul-04 10:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.