dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Afxmessage Box and default Focus

  1. #1
    Join Date
    Feb 2007
    Posts
    247

    Afxmessage Box and default Focus

    hi to all respected members

    i have a question that is there any way to set focus to "No" button in Afxmessage Box. like if i write

    AfxmessageBox(_T("Test"),MB_YESNO);

    then the default focus would be on the "YES" button . but i want this to be on the "No" Button.

    regards
    Dingo

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,207

    Re: Afxmessage Box and default Focus

    Code:
    AfxMessageBox(_T("Test"), MB_YESNO|MB_DEFBUTTON2);
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: http://codexpert.ro/blog/author/ovidiu-cucu/

  3. #3
    Join Date
    Feb 2007
    Posts
    247

    Resolved Re: Afxmessage Box and default Focus

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)