Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8605817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:55:55+00:00 2026-06-12T02:55:55+00:00

In Win32 programming the MessageBox function launches a dialog that requires action, you cannot

  • 0

In Win32 programming the MessageBox function launches a dialog that requires action, you cannot give focus to another window in the application until you press ‘OK’. Well I have a dialog box that I designed in the resource editor of Visual Studio 2008 and the problem is that I can click the menu-item that launches it, and while that dialog is still being showed I can click it again and show another one of them. Also I can use the rest of my application while the dialog is open.

I would like to make it so that the user must press ‘OK’ or ‘Cancel’ on my custom dialog to do anything else at all in the application, as if it were a MessageBox. How would I accomplish this? Is there a specific windows style or ex-style that I can set on my Dialog resource? I have tried WS_TOPMOST but I got no effect, I’m not sure what else to try.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:55:56+00:00Added an answer on June 12, 2026 at 2:55 am

    Your dialog needs to be launched with DialogBox()., DialogBoxParam(), or any of the direct dialog modal launchers. Further, you need to be sure and provide the top-level window of your application as the parent window when you you call it. Doing this should make your dialog modal, rather than modeless. It is important that you also use the WS_POPUP window style for your dialog template in the resource script, but it is usually set by default, so that is likely not your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an application that needs to a host native Win32 window and
In Win32 programming, what is the difference between a window's parent and a window's
I'm starting out with win32 programming. I created my first dialog but I can't
In win32 API programming, there is a concept like Registering a Window class. It
I'm new to win32 API programming and I try to understand source code of
hello i want to get startet with programming with WIN32, therefore i wrote a
win32 windows application and want to capture full screen and remove the border of
Our win32 application assembles objects from the data in a number of tables in
So I have a WIN32 app that records videos using DirectShow. Now I want
i want to study win32 programming(windows form applications) please advise me good sites or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.