CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Posts
    744

    How to not display a UI?

    Hi, ALL,
    MSDN at this link states that there is a flag

    CMIC_MASK_FLAG_NO_UI

    The system is prevented from displaying user interface elements (for example, error messages) while carrying out a command.
    However, it also indicates that the structure has

    nShow

    Type: int

    A set of SW_ values to pass to the ShowWindow function if the command displays a window or starts an application.
    which I think contradicts each other as there is no indication I can set the latter parameter to 0 and there is no SW_NOSHOW parameter in the ShowWindow documentation.

    Is it even possible to suppress that window? If yes - how?

    TIA!!

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,109

    Re: How to not display a UI?

    Quote Originally Posted by OneEyeMan View Post
    ... there is no indication I can set the latter parameter to 0 and there is no SW_NOSHOW parameter in the ShowWindow documentation.
    There is a SW_HIDE value. See ShowWindow function:

    SW_HIDE 0 Hides the window and activates another window.
    Victor Nijegorodov

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