Results 1 to 4 of 4

Thread: Can't create SECPopupColorWell

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    18

    Question Can't create SECPopupColorWell

    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?

  2. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    18
    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?

  3. #3
    You're right. This was fixed for Stingray Studio 11.0

  4. #4
    Junior Member
    Join Date
    Oct 2013
    Posts
    1
    is it the same for popupCalendar?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •