PDA

View Full Version : Can't create SECPopupColorWell



Kyudos
10-20-2011, 09:13 PM
I recently upgraded to the latest version (10.4) and changed to VS2010 (from VS6). Now my SECPopupColorWell based color selection buttons don't work because the CreateEx call in SECColorWell::Create fails. It comes back with error 0x00000579 (Invalid menu handle).

Now the (HMENU)(SEC_UINT)nID is null - by RogueWave's own code (SECPopupColorWell::Create calls SECColorWell::Create will NULL for th nID parameter.

Any ideas how to solve this?

Kyudos
10-24-2011, 05:01 PM
OK - I think I may have tracked this down!

SECPopupColorWell::Create calls SECColorWell::Create with:

dwStyle|WS_POPUP|CWS_RAISED_BORDER

then SECColorWell::Create calls CreateEx with

dwStyle | WS_CHILD | WS_CLIPCHILDREN

According to MS documentation:

WS_CHILD Creates a child window. Cannot be used with the WS_POPUP style.

So the RogueWave code is wrong?

boris
12-14-2011, 09:03 AM
You're right. This was fixed for Stingray Studio 11.0

xvoshe
10-09-2013, 08:06 AM
is it the same for popupCalendar?