From 6a1c35b153b4f1b0da417e36f7db4c9a6c2e5742 Mon Sep 17 00:00:00 2001 From: bbbradsmith Date: Fri, 23 Jun 2023 18:05:57 -0400 Subject: [PATCH] move title to last tabstop, if it's the first item it seems to always get focus (GotoDlgCtrl, SetFocus, etc. don't seem to be able to cancel it at startup) --- nsfplay/nsfplay.rc | 4 ++-- nsfplay/nsfplayDlg.cpp | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/nsfplay/nsfplay.rc b/nsfplay/nsfplay.rc index 307b909..323e4dd 100644 --- a/nsfplay/nsfplay.rc +++ b/nsfplay/nsfplay.rc @@ -170,12 +170,11 @@ EXSTYLE WS_EX_ACCEPTFILES | WS_EX_APPWINDOW CAPTION NSFPLAY_TITLE FONT 8, "MS Sans Serif", 400, 0, 0x0 BEGIN - EDITTEXT IDC_TITLE,5,3,237,14,ES_READONLY | ES_CENTER CONTROL "",IDC_SLIDER,"msctls_trackbar32",TBS_AUTOTICKS | TBS_ENABLESELRANGE | WS_TABSTOP,57,20,185,12 LTEXT "00:00",IDC_PLAYTIME,5,20,20,9 LTEXT "00:00",IDC_TIME_MAX,33,20,21,9 CTEXT "/",IDC_STATIC,24,20,8,8 - PUSHBUTTON "&Open",IDC_OPEN,5,37,18,14,BS_ICON + DEFPUSHBUTTON "&Open",IDC_OPEN,5,37,18,14,BS_ICON PUSHBUTTON "<<",IDC_PREV,27,37,18,14,BS_ICON PUSHBUTTON ">",IDC_PLAY,45,37,18,14,BS_ICON PUSHBUTTON "| |",IDC_PAUSE,63,37,18,14,BS_ICON @@ -186,6 +185,7 @@ BEGIN PUSHBUTTON "&Property",IDC_INFO,183,37,18,14,BS_ICON PUSHBUTTON "&Property",IDC_CONFIG,203,37,18,14,BS_ICON PUSHBUTTON "&Property",IDC_WAVEOUT,224,37,18,14,BS_ICON + EDITTEXT IDC_TITLE,5,3,237,14,ES_READONLY | ES_CENTER END diff --git a/nsfplay/nsfplayDlg.cpp b/nsfplay/nsfplayDlg.cpp index 632584d..860106b 100644 --- a/nsfplay/nsfplayDlg.cpp +++ b/nsfplay/nsfplayDlg.cpp @@ -267,9 +267,6 @@ BOOL CnsfplayDlg::OnInitDialog() ::OutputDebugString(cWndName); ::OutputDebugString("\n"); - // begin with Open button selected - GotoDlgCtrl(GetDlgItem(IDC_OPEN)); - return TRUE; }