diff options
author | Rr42 | 2018-06-07 17:56:33 +0530 |
---|---|---|
committer | Rr42 | 2018-06-07 17:56:33 +0530 |
commit | 34d5708e9506a4c7affd183363a1f2e8fc0f7e52 (patch) | |
tree | 6ad7169586febb0db645e588470067ee38ddc6d3 /ldmicro | |
parent | 45ff44fa87c9c9ac6a2f482eb3228cb5ddf71bf4 (diff) | |
download | LDMicroGtk-34d5708e9506a4c7affd183363a1f2e8fc0f7e52.tar.gz LDMicroGtk-34d5708e9506a4c7affd183363a1f2e8fc0f7e52.tar.bz2 LDMicroGtk-34d5708e9506a4c7affd183363a1f2e8fc0f7e52.zip |
Added GTK main function
Diffstat (limited to 'ldmicro')
-rw-r--r-- | ldmicro/ldmicro.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp index e803bba..bb53548 100644 --- a/ldmicro/ldmicro.cpp +++ b/ldmicro/ldmicro.cpp @@ -34,7 +34,7 @@ HINSTANCE Instance; -HWID MainWindow; +HWND MainWindow; HDC Hdc; // parameters used to capture the mouse when implementing our totally non- @@ -1093,7 +1093,16 @@ int main(int argc, char** argv) CompileProgram(FALSE); exit(0); } + + 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); + + /// BODY + gtk_main(); // /// ~~~ // Instance = hInstance; /// parent window |