Menu

wxx_wincore.h possible bug in 10.2.0

Help
2026-03-26
2026-03-30
  • Kevin Milch

    Kevin Milch - 2026-03-26

    Hello

    It looks like CWnd::Create starting at line ~418 needs to match what was in the 1010 version.

    -- Add this line around ~417

    cs.lpszClass = wc.lpszClassName;

    ...

    Line 425 - use cs.lpszClass, not wc.lpszClassName since PreCreate could override.

    wnd = CreateEx(cs.dwExStyle, cs.lpszClass, cs.lpszName, style,

    Regards,

    Kevin

     

    Last edit: Kevin Milch 2026-03-26
  • David

    David - 2026-03-28

    Hi Kevin,

    Thanks for the suggestion. I've updated CWnd::Create to set the window class name as follows:

    // Prefer the classname specified in PreRegisterClass over the one
    // specified in PreCreate. The class name will default to "Win32++ Window"
    // if neither PreRegisterClass nor PreCreate specify a class name.
    LPCTSTR className = wc.lpszClassName ? wc.lpszClassName : cs.lpszClass;
    

    Best regards,
    David

     
  • Kevin Milch

    Kevin Milch - 2026-03-30

    Thank you!

    Best regards,
    Kevin

     

Log in to post a comment.

MongoDB Logo MongoDB