I've been trying to change a style of an editbox control, to add and remove ES_PASSWORD to be exact.

After searching this board and the msdn I've come up with the next line of code, but it doesn't do anything:

Code:
SendDlgItemMessage(hDlg, IDD_CUSTOMLOGIN_PASSWORD, EM_SETPASSWORDCHAR, (WPARAM) (UINT) '*', 0);
Thank you.