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

    Dialog POPUP ......

    Hi,
    I have a problem realted to poping window in front of the other applications.
    I am using CDialog:oModal() to pop the new dialog. If some other application is opened infront of my vc++ application the dialog popped up will not be visible to user.
    How do I make dialog to pop up infront of all applications.

    Thanx.



  2. #2
    Guest

    Re: Dialog POPUP ......

    I have not tried this, but I believe you can check off the "system modal" box in the resource-view for your dialog..


  3. #3
    Join Date
    Sep 1999
    Location
    Pakistan
    Posts
    22

    Re: Dialog POPUP ......

    hello friend,

    use ::GetForegroundWindow()to get the handle of the foreground window, attach it to a CWnd object and pass pointer to that object as second parameter to the constructor of the Dialog.

    Regards,
    Tufail Khan


  4. #4
    Guest

    Re: Dialog POPUP ......

    If u can elaborate bit It will be helpfull for me. I am new to windows programming.


  5. #5
    Join Date
    May 1999
    Location
    TamilNadu, India
    Posts
    42

    Re: Dialog POPUP ......

    Hi,
    Once u pop up the dialog by DoModal, in the next line u make the dialog to be in the front of all other remaining dialogs, by using the member function of CWnd, SetForegroundWindow.
    Suppose dlg is the instance of ur dialog, then call
    dlg.SetForegroundWindow();

    Thanks,
    Srini.


  6. #6
    Guest

    Re: Dialog POPUP ......

    thanx



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