Standardschaltfläche
-
Hi,
wie kann ich eine Standardschaltfläche machen, sodass beim Drücken von Enter automatisch "OK" betätigt wird?
-
Versuch es mal mit BS_DEFPUSHBUTTON.
-
Hmm, das funktioniert nicht so ganz.
Mein Versuch:
SendMessage(GetDlgItem(hSearchDialog, IDOK), BM_SETSTYLE, BS_DEFPUSHBUTTON, 0);Der Dialog heißt hSearchDialog, die ID des OK-Buttons ist IDOK.
-
SendMessage(GetDlgItem(hSearchDialog, IDOK), BM_SETSTYLE, BS_DEFPUSHBUTTON, TRUE);