Originally posted by: Meherman
I want to give my list contol a blinking effect.Every individual item of list control can blink (with any color).how can i achieve this funcionality
ReplyOriginally posted by: Chandu
I am using Visual C++.NET edition on Windows 2000.
When I use the ColorCtrl.h file in one of my dialog based appliations. It is giving the following error in BEGIN_TEMPLATE_MESSAGE_MAP of ColorCtrl.h
error C2039: '_GetBaseMessageMap' : is not a member of 'CColorCtrl<BASE_TYPE>'.
I don't know much about templates. Please help.
That is becuase BEGIN_MESSAGE_MAP macro is different in visaul c++ 6.0 and Visaul c++.Net. I changed the code in templdef.h to match with new defination.
#ifdef _AFXDLL
#define BEGIN_TEMPLATE_MESSAGE_MAP(theTemplArgs, theClass, baseClass) \
template
Originally posted by: Manoj
I liked the article very much. I am trying to use your class in my trial application but after calling SetBkColor() method, my edit box's color is not changing. What could be the possible reason? Am I supposed to handle any specific Window's Message?
Hi Yury,
Reply
Originally posted by: Sylvain MARECHAL
Hello,
I currently workin with propertysheet in win32 (not MFC).
I try to set the button style to BS_OWNERDRAW in order to redraw it with another color.
I put the following code in the first Property Sheet winproc:
static BOOL WINAPI FirstPageProc(HWND hDlg, UINT nMsg, WPARAM wParam, LPARAM lParam )
{
switch (nMsg)
{
case WM_INITDIALOG :
{
HWND hWndButton = GetDlgItem(GetParent(hDlg), IDCANCE);
if( hWndButton )
{
LONG dwStyle = GetWindowLong( hWndButton, GWL_STYLE );
dwStyle = dwStyle | BS_OWNERDRAW;
SetWindowLong( hWndButton, GWL_STYLE, dwStyle );
LONG dwStyle2 = GetWindowLong( hWndButton, GWL_STYLE );
assert( dwStyle == dwStyle2 );
}
// etc ...
I notice with spy that the style isn't keep by the button window.
why ? Where should I set this code ?
Thankx in advance,
Sylvain
Originally posted by: Sylvain MARECHAL
Changing the color work for me, but I need to change the scrollbar color too. Is it possible ?
Thankx,
Sylvain
Reply
Originally posted by: Brian Rhodes
Is there a way to include this code and still be able to use the Class Wizard (under Visual C++)?
-Brian
ReplyOriginally posted by: Christian Egging
Hello
Nice class, but you can not compile it with the .NET-Compiler.
ReplyOriginally posted by: Karu
If I set the back color to CLR_NONE , I get a black back ground on windows XP.
Any ideas ??
Originally posted by: Adrian
Your code helps me a great deal!
Thank you!
Reply
Originally posted by: Djibril
Hello,
This class is great. Thank you very much.
I tried to use it with a CDateTimeCtrl but it is not working. Just trying to change background.
Works fine for every else I tried to use it with.