changing defaut button
-
hi everybody, how can i, in a dialog dox application, change the default button ? i've tried to change the styles (SetStyle() or something like that) of the buttons, but it only changes the STYLE, and not the effective function of DEFAULT BUTTON. any ideas guys ? thx a lot
TOXCCT >>> GEII power
-
hi everybody, how can i, in a dialog dox application, change the default button ? i've tried to change the styles (SetStyle() or something like that) of the buttons, but it only changes the STYLE, and not the effective function of DEFAULT BUTTON. any ideas guys ? thx a lot
TOXCCT >>> GEII power
From MSDN: An application sends a DM_SETDEFID message to change the identifier of the default push button for a dialog box. DM_SETDEFID wParam = idControl; // identifier of new default push button onwards and upwards...
-
hi everybody, how can i, in a dialog dox application, change the default button ? i've tried to change the styles (SetStyle() or something like that) of the buttons, but it only changes the STYLE, and not the effective function of DEFAULT BUTTON. any ideas guys ? thx a lot
TOXCCT >>> GEII power
It's already a method of the CDialog class:
CDialog::SetDefID()
this->SetDefID(IDC_BUTTON1);
works just fine. :) If I write code in my sleep, does that make me brilliant, or just a lazy programmer? My articles www.stillwaterexpress.com BlackDice - the programmer formerly known as bdiamond -
hi everybody, how can i, in a dialog dox application, change the default button ? i've tried to change the styles (SetStyle() or something like that) of the buttons, but it only changes the STYLE, and not the effective function of DEFAULT BUTTON. any ideas guys ? thx a lot
TOXCCT >>> GEII power
-
hi everybody, how can i, in a dialog dox application, change the default button ? i've tried to change the styles (SetStyle() or something like that) of the buttons, but it only changes the STYLE, and not the effective function of DEFAULT BUTTON. any ideas guys ? thx a lot
TOXCCT >>> GEII power
-
Default button? Check the button properties.
Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.
-
no, if you did have a look at what i said previously, i've already done this, and, it doesn't change nothing else but the style of the buttons, not the effective default action...
TOXCCT >>> GEII power
-
no, if you did have a look at what i said previously, i've already done this, and, it doesn't change nothing else but the style of the buttons, not the effective default action...
TOXCCT >>> GEII power
-
Maybe you delete the IDOK button, and it is the default button. Start over again, and change the IDOK button as your default button. Got the idea?
Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.