Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Passing a string from C to VB Pin
William.Wang5-Jul-06 22:29
William.Wang5-Jul-06 22:29 
AnswerRe: Passing a string from C to VB Pin
ThatsAlok6-Jul-06 0:44
ThatsAlok6-Jul-06 0:44 
QuestionC++ class Pin
Nirmal Khatri5-Jul-06 21:26
Nirmal Khatri5-Jul-06 21:26 
AnswerRe: C++ class Pin
toxcct5-Jul-06 21:43
toxcct5-Jul-06 21:43 
AnswerRe: C++ class Pin
Naveen5-Jul-06 21:44
Naveen5-Jul-06 21:44 
GeneralRe: C++ class Pin
Naveen5-Jul-06 23:03
Naveen5-Jul-06 23:03 
AnswerRe: C++ class Pin
see me5-Jul-06 21:48
see me5-Jul-06 21:48 
QuestionHow to get color Pin
huynhnb5-Jul-06 21:24
huynhnb5-Jul-06 21:24 
Hi, All
Purpose of my dialog:
When user chose color from CColorDialog, i make color value to Hex value.
three edit include on this dialog.

I wrote my class public from CColorDialog
class CColorDialogExt : public CColorDialog
and i add three edit control to my class:
BOOL CColorDialogExt::OnInitDialog()
{
CColorDialog::OnInitDialog();
m_pRed->Create(WS_EX_STATICEDGE | WS_EX_CLIENTEDGE | ES_LEFT | WS_CHILD | WS_VISIBLE | WS_TABSTOP ,CRect(445, 203, 475, 220), this, 1000);

m_pGreen->Create(WS_EX_CLIENTEDGE | ES_LEFT | WS_CHILD | WS_VISIBLE | WS_TABSTOP ,CRect(445, 225, 475, 242), this, 2000);

m_pBlue->Create(WS_EX_CLIENTEDGE | ES_LEFT | WS_CHILD | WS_VISIBLE | WS_TABSTOP , CRect(445, 247, 475, 264), this, 3000);

return TRUE;
}

So, three edit view ok, when i change color, i want to get color value (COLORREF)
but i can not get it.
( action : OnLbuttonDown)
Can you help me now?

Thank for advance.


Huynhnb

.: Your success is also mine :.


AnswerRe: How to get color Pin
Sarath C5-Jul-06 21:29
Sarath C5-Jul-06 21:29 
GeneralRe: How to get color Pin
huynhnb5-Jul-06 21:38
huynhnb5-Jul-06 21:38 
GeneralRe: How to get color Pin
Sarath C5-Jul-06 21:48
Sarath C5-Jul-06 21:48 
GeneralRe: How to get color Pin
huynhnb5-Jul-06 21:58
huynhnb5-Jul-06 21:58 
GeneralRe: How to get color Pin
Hamid_RT5-Jul-06 22:10
Hamid_RT5-Jul-06 22:10 
GeneralRe: How to get color Pin
Sarath C5-Jul-06 22:29
Sarath C5-Jul-06 22:29 
GeneralRe: How to get color Pin
Hamid_RT5-Jul-06 22:37
Hamid_RT5-Jul-06 22:37 
GeneralRe: How to get color Pin
Sarath C5-Jul-06 22:30
Sarath C5-Jul-06 22:30 
GeneralRe: How to get color Pin
Michael Dunn5-Jul-06 22:46
sitebuilderMichael Dunn5-Jul-06 22:46 
GeneralRe: How to get color Pin
huynhnb5-Jul-06 23:05
huynhnb5-Jul-06 23:05 
AnswerRe: How to get color Pin
Justin Tay6-Jul-06 0:22
Justin Tay6-Jul-06 0:22 
GeneralRe: How to get color Pin
huynhnb6-Jul-06 0:54
huynhnb6-Jul-06 0:54 
Questionhow we can compare the dialog length to screen length Pin
vasusree5-Jul-06 21:15
vasusree5-Jul-06 21:15 
AnswerRe: how we can compare the dialog length to screen length /*modified*/ Pin
Hamid_RT5-Jul-06 21:28
Hamid_RT5-Jul-06 21:28 
GeneralRe: how we can compare the dialog length to screen length Pin
vasusree5-Jul-06 21:32
vasusree5-Jul-06 21:32 
GeneralRe: how we can compare the dialog length to screen length Pin
Hamid_RT5-Jul-06 21:45
Hamid_RT5-Jul-06 21:45 
GeneralRe: how we can compare the dialog length to screen length Pin
vasusree5-Jul-06 23:33
vasusree5-Jul-06 23:33 

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.