<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR></HEAD>
<BODY>
<DIV>MONTHCAL_CLASS<SPAN class=826002503-01122004> is a #define.
CommCtrl.h has:</SPAN></DIV>
<DIV><SPAN class=826002503-01122004></SPAN> </DIV>
<DIV><SPAN class=826002503-01122004><FONT face=Arial color=#0000ff
size=2>#define
MONTHCAL_CLASSW
L"SysMonthCal32"<BR>#define
MONTHCAL_CLASSA
"SysMonthCal32"</FONT></SPAN></DIV>
<DIV><SPAN class=826002503-01122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=826002503-01122004><FONT face=Arial color=#0000ff size=2>So you
probably want "SysMonthCal32" rather than MONTHCAL_CLASS</FONT></SPAN></DIV>
<DIV><SPAN class=826002503-01122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=826002503-01122004><FONT face=Arial color=#0000ff
size=2>Mark</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
python-win32-bounces@python.org [mailto:python-win32-bounces@python.org]<B>On
Behalf Of </B>Wara Songkran<BR><B>Sent:</B> Wednesday, 1 December 2004 6:25
AM<BR><B>To:</B> python-win32@python.org<BR><B>Subject:</B> [python-win32] How
to use Common Controls<BR><BR></FONT></DIV>
<DIV>Hi</DIV>
<DIV> </DIV>
<DIV>I've try to use Common Controls like Date and Time Picker</DIV>
<DIV> </DIV>
<DIV>I Initializes specific common controls with
win32gui.InitCommonControlsEx(flag)</DIV>
<DIV>the parameter ICC_ constants is 256 which is ICC_DATE_CLASSES I found
defined in </DIV>
<DIV>COMMCTRL.h </DIV>
<DIV> </DIV>
<DIV>so I've call </DIV>
<DIV>ICC_DATE_CLASSES = 0x00000100</DIV>
<DIV>win32gui.InitCommonControlsEx(ICC_DATE_CLASSES)</DIV>
<DIV> </DIV>
<DIV>but when I try to create Date and Time Picker Control with</DIV>
<DIV>dateHwnd = CreateWindow("MONTHCAL_CLASS", None, WS_CHILD | WS_VISIBLE,
300, 300, 50, 50, self.hwnd, 0, GetWindowLong(self.hwnd, GWL_HINSTANCE),
None)</DIV>
<DIV> </DIV>
<DIV>python report </DIV>
<DIV>error: (1407, 'CreateWindow', 'Cannot find window class.')</DIV>
<DIV> </DIV>
<DIV>please help.</DIV>
<DIV> </DIV>
<DIV>Regard</DIV>
<DIV>Wara Songkran</DIV>
<DIV> </DIV>
<DIV> </DIV>
<P>
<HR SIZE=1>
Do you Yahoo!?<BR>Read only the mail you want - <A
href="http://us.rd.yahoo.com/mail_us/taglines/spamguard/*http://promotions.yahoo.com/new_mail/static/protection.html">Yahoo!
Mail SpamGuard</A>.</BLOCKQUOTE></BODY></HTML>