void User_ShowDelete (LPASIDLIST pUserList)
{
- ModalDialogParam (IDD_USER_DELETE, g.hMain, User_Delete_DlgProc, (LPARAM)pUserList);
+ ModalDialogParam (IDD_USER_DELETE, g.hMain, (DLGPROC)User_Delete_DlgProc, (LPARAM)pUserList);
}
switch (msg)
{
case WM_INITDIALOG:
- SetWindowLong (hDlg, DWL_USER, lp);
+ SetWindowLongPtr (hDlg, DWLP_USER, lp);
User_Delete_OnInitDialog (hDlg);
break;
void User_Delete_OnInitDialog (HWND hDlg)
{
- LPASIDLIST pUserList = (LPASIDLIST)GetWindowLong (hDlg, DWL_USER);
+ LPASIDLIST pUserList = (LPASIDLIST)GetWindowLongPtr (hDlg, DWLP_USER);
// Fix the title of the dialog
//
void User_Delete_OnDestroy (HWND hDlg)
{
- LPASIDLIST pUserList = (LPASIDLIST)GetWindowLong (hDlg, DWL_USER);
+ LPASIDLIST pUserList = (LPASIDLIST)GetWindowLongPtr (hDlg, DWLP_USER);
asc_AsidListFree (&pUserList);
}
void User_Delete_OnOK (HWND hDlg)
{
- LPASIDLIST pUserList = (LPASIDLIST)GetWindowLong (hDlg, DWL_USER);
+ LPASIDLIST pUserList = (LPASIDLIST)GetWindowLongPtr (hDlg, DWLP_USER);
// Start a background task to do all the work.
//