Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting data from dialog controls without closing the dialog
#3
On WM_INITDIALOG, set focus to the edit control, set selection, and return 0.

Code:
Copy      Help
,case WM_INITDIALOG
,DT_Init(hDlg lParam)
,int hedit=id(3 hDlg)
,SetFocus hedit
,SendMessage hedit EM_SETSEL -2 -2
,SendMessage hedit WM_VSCROLL 7 0 ;;def SB_BOTTOM 7
,ret


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)