> > I suspect you have not initialized the common controls library.
>
> About an hour ago, I found one solution to the problem.
>
> Is there another (perhaps, more standard?) way to "initialize" the
> library other than doing a LoadLibrary(_T("comctl32")); before the
> DialogBox() call?
>
> My code now works... but if there's a "proper" way to do it, I'd be
> interested in knowing.

Oh, I'm so glad that you posted this.  In fact, what you're doing to
initialize the common controls library is not correct at all!  You need to
call the InitCommonControlsEx( ) API function, and specify which parts of
the library you want to be initialized.  The reason is there is more to
initializing the common controls library than just loading its DLL.

HTH,
-------------
Ehsan Akhgari

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]

Ideas that fall under shadows of theories that stand tall, thoughts that
grow narrow upon being verbally released.





Reply via email to