summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRr422018-06-08 10:18:21 +0530
committerRr422018-06-08 10:18:21 +0530
commitafc06f7ce6abfa709a461fcfb1e00f6d050eb2a9 (patch)
tree035bedf534b6e3f983d4cc15b37fac22b0aa4c52
parent49e9835f07ef02177018b34d6a173c453930b6f8 (diff)
downloadLDMicroGtk-afc06f7ce6abfa709a461fcfb1e00f6d050eb2a9.tar.gz
LDMicroGtk-afc06f7ce6abfa709a461fcfb1e00f6d050eb2a9.tar.bz2
LDMicroGtk-afc06f7ce6abfa709a461fcfb1e00f6d050eb2a9.zip
Fixed bugs in main function
-rw-r--r--ldmicro/includes/ldmicro.h2
-rw-r--r--ldmicro/ldmicro.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/ldmicro/includes/ldmicro.h b/ldmicro/includes/ldmicro.h
index b890f04..caa154d 100644
--- a/ldmicro/includes/ldmicro.h
+++ b/ldmicro/includes/ldmicro.h
@@ -514,7 +514,7 @@ void SetMenusEnabled(BOOL canNegate, BOOL canNormal, BOOL canResetOnly,
void SetUndoEnabled(BOOL undoEnabled, BOOL redoEnabled);
void RefreshScrollbars(void);
extern HINSTANCE Instance;
-extern HWND MainWindow;
+extern HWID MainWindow;
extern HDC Hdc;
extern PlcProgram Prog;
extern char CurrentSaveFile[MAX_PATH];
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp
index bb53548..37e35a1 100644
--- a/ldmicro/ldmicro.cpp
+++ b/ldmicro/ldmicro.cpp
@@ -34,7 +34,7 @@
HINSTANCE Instance;
-HWND MainWindow;
+HWID MainWindow;
HDC Hdc;
// parameters used to capture the mouse when implementing our totally non-
@@ -1097,8 +1097,8 @@ int main(int argc, char** argv)
gtk_init(&argc, &argv);
MainWindow=gtk_window_new(GTK_WINDOW_TOPLEVEL);
- gtk_window_set_title(GTK_WINDOW(gtk_window_new), "LDMicro");
- gtk_widget_show(gtk_window_new);
+ gtk_window_set_title(GTK_WINDOW(MainWindow), "LDMicro");
+ gtk_widget_show(MainWindow);
/// BODY