Giter VIP home page Giter VIP logo

dialogboxparam-example's Introduction

This project is an example of using Win32 API DialogBoxParam.

Enveironment: Visual Studio Pro 2017, Windows10 x64.

  1. The mechanism of modal windows
    The dialog box created by "DialogBox" family (such as DialogBox, DialogBoxIndirect, DialogBoxParam and DialogBoxIndirectParam) is a modal window. Before creation, the system will disable its parent window. And create a new message loop for it in these API functions. These functions also require a callback function (such as DialogProc) to process message. In other words, the modal dialog window has its own message loop and window procedure different from the main thread. Before the user click button such as "OK", "Cancel" or "Close", they are always in modal window message loop. After the buttons clicked, use "EndDialog" to return to the main message loop in the main thread. The parent window can respond again.
  2. The mechanism of modaless windows
    The dialog box created by "CreateDialog" family (such as CreateDialog, CreateDialogIndirect, CreateDialogParam and CreateDialogIndirectParam) is a modaless window. They will return after creation instead of creating a new message loop. The dialog box uses the message loop in the main thread. Therefore, the parent window can also resapond.

dialogboxparam-example's People

Contributors

weirenxue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.