[python-win32] How to use Common Controls
Wara Songkran
paandev at yahoo.com
Wed Dec 1 08:33:26 CET 2004
It's work! thanks.
Mark Hammond <mhammond at skippinet.com.au> wrote:
MONTHCAL_CLASS is a #define. CommCtrl.h has:
#define MONTHCAL_CLASSW L"SysMonthCal32"
#define MONTHCAL_CLASSA "SysMonthCal32"
So you probably want "SysMonthCal32" rather than MONTHCAL_CLASS
Mark
-----Original Message-----
From: python-win32-bounces at python.org [mailto:python-win32-bounces at python.org]On Behalf Of Wara Songkran
Sent: Wednesday, 1 December 2004 6:25 AM
To: python-win32 at python.org
Subject: [python-win32] How to use Common Controls
Hi
I've try to use Common Controls like Date and Time Picker
I Initializes specific common controls with win32gui.InitCommonControlsEx(flag)
the parameter ICC_ constants is 256 which is ICC_DATE_CLASSES I found defined in
COMMCTRL.h
so I've call
ICC_DATE_CLASSES = 0x00000100
win32gui.InitCommonControlsEx(ICC_DATE_CLASSES)
but when I try to create Date and Time Picker Control with
dateHwnd = CreateWindow("MONTHCAL_CLASS", None, WS_CHILD | WS_VISIBLE, 300, 300, 50, 50, self.hwnd, 0, GetWindowLong(self.hwnd, GWL_HINSTANCE), None)
python report
error: (1407, 'CreateWindow', 'Cannot find window class.')
please help.
Regard
Wara Songkran
---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20041130/dbf1e006/attachment.html
More information about the Python-win32
mailing list