diff options
author | Rr42 | 2018-06-08 10:18:21 +0530 |
---|---|---|
committer | Rr42 | 2018-06-08 10:18:21 +0530 |
commit | afc06f7ce6abfa709a461fcfb1e00f6d050eb2a9 (patch) | |
tree | 035bedf534b6e3f983d4cc15b37fac22b0aa4c52 | |
parent | 49e9835f07ef02177018b34d6a173c453930b6f8 (diff) | |
download | LDMicroGtk-afc06f7ce6abfa709a461fcfb1e00f6d050eb2a9.tar.gz LDMicroGtk-afc06f7ce6abfa709a461fcfb1e00f6d050eb2a9.tar.bz2 LDMicroGtk-afc06f7ce6abfa709a461fcfb1e00f6d050eb2a9.zip |
Fixed bugs in main function
-rw-r--r-- | ldmicro/includes/ldmicro.h | 2 | ||||
-rw-r--r-- | ldmicro/ldmicro.cpp | 6 |
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 |