Mercurial > foo_out_sdl
comparison foosdk/sdk/foobar2000/SDK/modeless_dialog.h @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:e9bb126753e7 | 1:20d02a178406 |
|---|---|
| 1 #pragma once | |
| 2 #ifdef _WIN32 | |
| 3 //! Service for plugging your nonmodal dialog windows into main app loop to receive IsDialogMessage()-translated messages.\n | |
| 4 //! Note that all methods are valid from main app thread only.\n | |
| 5 //! Usage: call the static methods - modeless_dialog_manager::g_add / modeless_dialog_manager::g_remove. | |
| 6 class NOVTABLE modeless_dialog_manager : public service_base { | |
| 7 FB2K_MAKE_SERVICE_COREAPI(modeless_dialog_manager); | |
| 8 public: | |
| 9 //! Adds specified window to global list of windows to receive IsDialogMessage(). | |
| 10 virtual void add(HWND p_wnd) = 0; | |
| 11 //! Removes specified window from global list of windows to receive IsDialogMessage(). | |
| 12 virtual void remove(HWND p_wnd) = 0; | |
| 13 | |
| 14 //! Static helper; see add(). | |
| 15 static void g_add(HWND p_wnd) {modeless_dialog_manager::get()->add(p_wnd);} | |
| 16 //! Static helper; see remove(). | |
| 17 static void g_remove(HWND p_wnd) {modeless_dialog_manager::get()->remove(p_wnd);} | |
| 18 | |
| 19 }; | |
| 20 #endif |
