Thread View: comp.os.ms-windows.programmer.controls
1 messages
1 total messages
Started by Randy Yates
Tue, 26 Mar 1996 01:01
Getting Text To Display In Win 3.1 Static 3-D Controls
Author: Randy Yates
Date: Tue, 26 Mar 1996 01:01
Date: Tue, 26 Mar 1996 01:01
33 lines
1582 bytes
1582 bytes
I am writing a Win 3.1 program and using 3-D controls directly on the
client area of my application. I can create
3-D radiobuttons just fine. When I create static controls with no
style attributes (a style of 0), they work fine. When I create static
controls with a non-zero style, such as SS_GRAYFRAME in order to
make them have a 3-D outline, the text of the control disappears.
I am trapping WM_CTLCOLOR and WM_SYSCOLORCHANGE messages like so:
case WM_CTLCOLOR:
hbrush = Ctl3dCtlColorEx(message, wParam, lParam);
if (hbrush)
{
return hbrush;
}
else
{
return DefWindowProc(hWnd, message, wParam, lParam);
}
break;
case WM_SYSCOLORCHANGE:
return Ctl3dColorChange();
break;
Can someone please tell me why this isn't working?
--
% Randy Yates % "...the answer lies within your soul
% EE/Mathematics Student % 'cause no one knows which side
% University of South Florida % the coin will fall."
% <yatesc@csee.usf.edu> % 'Big Wheels', *Out of the Blue*, ELO
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads