Skip to content

Commit

Permalink
move title to last tabstop, if it's the first item it seems to always…
Browse files Browse the repository at this point in the history
… get focus (GotoDlgCtrl, SetFocus, etc. don't seem to be able to cancel it at startup)
  • Loading branch information
bbbradsmith committed Jun 23, 2023
1 parent bd64938 commit 6a1c35b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions nsfplay/nsfplay.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down
3 changes: 0 additions & 3 deletions nsfplay/nsfplayDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ BOOL CnsfplayDlg::OnInitDialog()
::OutputDebugString(cWndName);
::OutputDebugString("\n");

// begin with Open button selected
GotoDlgCtrl(GetDlgItem(IDC_OPEN));

return TRUE;
}

Expand Down

0 comments on commit 6a1c35b

Please sign in to comment.