diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-06 13:57:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-06 13:57:08 +0000 |
commit | ed629adafe5d1bb4fc976412dc7767d16d641792 (patch) | |
tree | 3a503f5461d96b9a8f2a19369daeca7910852ee9 | |
parent | dd8167ac202bd21dfd2548efdcd2691b217f794e (diff) |
make window visible
git-svn-id: http://svn.miranda-ng.org/main/trunk@1380 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/PluginUpdater/res/Resource.rc | 2 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/Scanner.cpp | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/res/Resource.rc b/plugins/PluginUpdater/res/Resource.rc index 626070c3e0..2e3c945924 100644 --- a/plugins/PluginUpdater/res/Resource.rc +++ b/plugins/PluginUpdater/res/Resource.rc @@ -37,7 +37,7 @@ IDI_CANCEL ICON "btnClose.ico" //
IDD_UPDATE DIALOGEX 0, 0, 241, 203
-STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
+STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_VISIBLE | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Updates found!"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp index 929999c80b..13cd2adf05 100644 --- a/plugins/PluginUpdater/src/Scanner.cpp +++ b/plugins/PluginUpdater/src/Scanner.cpp @@ -175,8 +175,13 @@ static void CheckUpdates(void *) void DoCheck(int iFlag)
{
- if (CheckThread || hwndDialog)
+ if (CheckThread)
ShowPopup(0, LPGENT("Plugin Updater"), LPGENT("Update checking already started!"), 2, 0);
+ else if (hwndDialog) {
+ ShowWindow(hwndDialog, SW_SHOW);
+ SetForegroundWindow(hwndDialog);
+ SetFocus(hwndDialog);
+ }
else if (iFlag) {
CheckThread = mir_forkthread(CheckUpdates, 0);
DBWriteContactSettingDword(NULL, MODNAME, "LastUpdate", time(NULL));
|