Re: Changing default buttons
Quoted from the documentation of DM_SETDEFID in MSDN
"Using the DM_SETDEFID message can result in more than one button appearing
to have the default push button state. When the system brings up a dialog,
it draws the first push button in the dialog template with the default state
border. Sending a DM_SETDEFID message to change the default button will not
always remove the default state border from the first push button. In these
cases, the application should send a BM_SETSTYLE message to change the first
push button border style."
The new default button also must exist and be enabled.
--
Regards
Sheng Jiang
Microsoft MVP in VC++
"Rob" <Rob@discussions.microsoft.com> wrote in message
news:649BC53A-E753-40DB-8378-7370FA482B4C@microsoft.com...
"Sheng Jiang[MVP]" wrote:
then send the DM_SETDEFID to the property page
It doesn't seem to work. When I use this to set one of the pushbuttons in
the page to be the default, the Back button retains the default status,
and
the push button that I tried to set as the default does not show as the
default.
Also, as I mentioned in another posting to this thread,
CDialog::SetDefID()
doesn't work in the regular dialogue in which I'm using it.