SetFocus and DefPushButton management

Dimitrie O. Paun dpaun at rogers.com
Wed Mar 16 06:55:21 CST 2005


On Wed, Mar 16, 2005 at 10:22:51AM +0100, Katia Maculan wrote:
> +                   SendMessageA (dlgInfo->hwndFocus, BM_SETSTYLE, BS_DEFPUSHBUTTON, TRUE); 
                      ^^^^^^^^^^^^^
Please use SendMessageW instead.

> +                   /*Check for a previous defpushbutton*/
> +                   if (dlgInfo->idResult)
> +                   {
> +                      hWndOldDefPushButton = GetDlgItem (hwnd,dlgInfo->idResult);
> +                      if (hWndOldDefPushButton && (hWndOldDefPushButton != dlgInfo->hwndFocus))
> +                          SendMessageA (hWndOldDefPushButton, BM_SETSTYLE, BS_PUSHBUTTON, TRUE);
                             ^^^^^^^^^^^^
Ditto.


-- 
Dimi.



More information about the wine-devel mailing list