From: Christian ASTOR on
On 28 jan, 11:41, Larry Lindstrom <larryl_tu...(a)hotmail.com> wrote:
>    But this function fails when run in my sample code.  CreateWindowEx
> () returns a status_bar_handle of NULL, and the error code is 1407,
> "Cannot find window class".
>    I have comctl32.lib defined, and include commctrl.h.  Hinstance is
> 0x00400000, hdlg has the correct value.
>
>    What am I missing?

Are you sure that you call InitCommonControls() somewhere ?
From: Larry Lindstrom on
On Jan 28, 3:18 am, Christian ASTOR <casto...(a)club-internet.fr> wrote:
> On 28 jan, 11:41, Larry Lindstrom <larryl_tu...(a)hotmail.com> wrote:
>
> >    But this function fails when run in my sample code.  CreateWindowEx
> > () returns a status_bar_handle of NULL, and the error code is 1407,
> > "Cannot find window class".
> >    I have comctl32.lib defined, and include commctrl.h.  Hinstance is
> > 0x00400000, hdlg has the correct value.
>
> >    What am I missing?
>
> Are you sure that you call InitCommonControls()  somewhere ?

Thanks Christian:

That was the problem.

Somehow I missed the call to the application's function that calls
InitCommonControlsEx().

As I've told you so many times, I appreciate your assistance.

Larry