Originally posted by: Gary
I am fairly new at navigating in Visual C... and as such have much to learn. I realy appriciate the work and efforts of people like you. I have a lot of C programming experiance, but can always learn more. I have limited my effort to dos based work and driver development on NT platforms... but think it is time to exploite the whole ball of wax
Originally posted by: edwar ali
Edwar
I really put this site in my favourite and I spend 8 hours a day to launch in this site. Meanwhile I try to make an aplication in C++
Originally posted by: Duckegg
Great control!
Can anybody add hot-track function to it?
Just like Windows select color button?
Originally posted by: Zhimen Li
When I clicked this button,the Color Dialog didn't appear.
Originally posted by: Bruno Pereira
ainda bem que descobri esta cena...
ReplyOriginally posted by: Ron Jones
Has anyone been able to get this control to work on a property page? When dismissing the dialog (using the mouse to click a color) there is an assertion in the MFC CDialog DestroyWindow code.
ASSERT(m_hWnd == hWndOrig)
Originally posted by: Woody
Thankyou for producing an excellent piece of code and making it available for everyone to use.
Your instructions were clear and easy to follow and the code works like a dream.
Nice one!
Originally posted by: markr
Hi folks,
Maybe I'm missing something obvious here, but I'd like to handle the button click event for this control within the parent dialog as well. In my case, I have a property page hosting the control, and I'd like to call SetMofified(TRUE) when this button control is clicked.
Apparently the subclassing process stops this from being possible, since none of my handlers for the buttons will work.
Does anyone know of a workaround?
Thanks!
-MR
Originally posted by: Chris
CRect rect;
Instead of the for loops...
Nice stuff, just was wondering if you could use this inside
CColorBtn::DrawItem() for the focus rect...
rect=lpd->rcItem;
rect.DeflateRect(2,2,2,2);
DC.DrawFocusRect(rect);
rect.InflateRect(2,2,2,2);
Originally posted by: paulpv
void CColorBtnDlg::OnLButtonDown(UINT nFlags, CPoint point)
if (child && child != this)
Sorry for bastardizing any of your code, but I find the following OnLButtonDown works better:
{
if (GetCapture() == this)
{
CWnd *child = ChildWindowFromPoint(point);
child->SendMessage(WM_LBUTTONDOWN,0,0l);
}
else
{
EndDialog(IDCANCEL);
}
}