Announcement

Collapse
No announcement yet.

Fix for Pbnote

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Curtis De Vries
    Guest replied
    Don't remove the %IDM_CLOSE doing so will provent the CLOSE ALL
    in the menu to work. I got that and the %WM_CLOSE mixed up and
    thought the %IDM_CLOSE handled when you clicked the close button.
    Curtis

    Leave a comment:


  • Curtis De Vries
    Guest started a topic Fix for Pbnote

    Fix for Pbnote

    I found a small problem with the pbnote example. When you select
    exit from the menu after you change the text the program will
    quit with out asking if you want to save changes unlike when
    you click the close box. All you have to do is change this line

    CASE %WM_COMMAND
    .....
    CASE %IDM_EXIT
    SendMessage hWnd, %WM_DESTROY, wParam, lParam
    .....
    END SELECT

    to

    CASE %WM_COMMAND
    .....
    CASE %IDM_EXIT
    SendMessage hWnd, %WM_CLOSE, wParam, lParam
    .....
    END SELECT

    One more thing I don't think the Case %IDM_CLOSE case within the
    CASE %WM_COMMAND is ever used because the CASE %WM_CLOSE is used
    when you press the close button and then when you select exit in
    the menu the CASE %IDM_EXIT handles that but I am not sure.
Working...
X