Announcement

Collapse
No announcement yet.

WM_Help Nuance

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

  • WM_Help Nuance

    I did not know that both F1 and Ctrl+F1 send %WM_Help.

    Code:
    'Compilable Example:
    #Compile Exe
    #Dim All
    #Include "Win32API.inc"
    
    Global hDlg As Dword
    Function PBMain() As Long
       Dialog New Pixels, 0, "PowerBASIC",300,300,200,200, %WS_OverlappedWindow To hDlg
       Dialog Show Modal hDlg Call DlgProc
    End Function
    
    CallBack Function DlgProc() As Long
       Select Case Cb.Msg
          Case %WM_Help
             ? "Bingo"
       End Select
    End Function
Working...
X