04-02-2011, 05:27 AM
,case WM_INITDIALOG
,SendMessage hDlg WM_SIZE 0 0
,
,case WM_SIZE
,int c=id(3 hDlg)
,RECT rd rc
,GetClientRect hDlg &rd
,GetClientRect c &rc
,mov rd.right/2-(rc.right/2) rd.bottom/2-(rc.bottom/2) cThanks
|
Can't keep button centered on window size change
|
|
04-02-2011, 05:27 AM
,case WM_INITDIALOGThanks |
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |