|
-
Nov 27th, 2001, 01:26 PM
#1
Thread Starter
Fanatic Member
FindWindowEx Prob
Hi All,
I have the following code set in a form load event
FrameHwnd = FindWindowEx(Me.hwnd, 0&, "ThunderFrame", vbNullString)
calendarEndHwnd = FindWindowEx(FrameHwnd, 0&, "CalendarWndClass", vbNullString)
calendarStartHwnd = FindWindowEx(FrameHwnd, calendarEndHwnd, "CalendarWndClass", vbNullString)
cboMonthEndHwnd = FindWindowEx(calendarEndHwnd, 0&, "ComboBox", vbNullString)
cboYearEndHwnd = FindWindowEx(calendarEndHwnd, cboMonthEndHwnd, "ComboBox", vbNullString)
cboMonthStartHwnd = FindWindowEx(calendarStartHwnd, 0&, "ComboBox", vbNullString)
cboYearStartHwnd = FindWindowEx(calendarStartHwnd, cboMonthStartHwnd, "ComboBox", vbNullString)
ActCalHwnd = FindWindowEx(Me.hwnd, 0&, "CalendarWndClass", vbNullString)
cboActMonthHwnd = FindWindowEx(ActCalHwnd, 0&, "ComboBox", vbNullString)
cboActYearHwnd = FindWindowEx(ActCalHwnd, cboActMonthHwnd, "ComboBox", vbNullString)
This all works fine in a development environment both under W2K and 95. Running the compiled project on a 95 machine and it does not find the handle to set cboYearStartHwnd. The value is 0.
Does anybody have any ideas why this is so.
Regards
Bill Crawley
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|