CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Posts
    90

    how to appear a modeless dialog by draging the button on the main dialog?

    In a dialog based app program, when the program starts, there are two dialogs: MainDlg and ModeLessDlg, and if you press the "close "Button on the ModelessDlg, the "DragMe" button will appear on the MainDlg, and if you click and drag the "DragMe" button on the MainDlg, the ModeLessDlg will appear in the place.

    how to realize the function? I can not ahieve the function that is"if you click and drag the "DragMe" button on the MainDlg, the ModeLessDlg will appear in the place"

    can you help me? thank you!
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2002
    Posts
    8
    do you want to let modelessdlg in maindlg ?
    take all maindlg client place?

  3. #3
    Join Date
    Dec 2002
    Posts
    214
    The only thing you should learn is how to use these 2 WINAPI functions.
    ShowWindow(BOOL)
    GetDlgItem(UINT)

    look them up in MSDN..

  4. #4
    Join Date
    Apr 2003
    Posts
    90

    reply

    no, I want the modeless dialog independent, I click and drag the button on the Maindlg ,the modeless dialog can appear there

    reply wuyh :

    I tried it , but It can not get the result

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured