summaryrefslogtreecommitdiff
path: root/ldmicro
diff options
context:
space:
mode:
authorRr422018-06-07 17:56:33 +0530
committerRr422018-06-07 17:56:33 +0530
commit34d5708e9506a4c7affd183363a1f2e8fc0f7e52 (patch)
tree6ad7169586febb0db645e588470067ee38ddc6d3 /ldmicro
parent45ff44fa87c9c9ac6a2f482eb3228cb5ddf71bf4 (diff)
downloadLDMicroGtk-34d5708e9506a4c7affd183363a1f2e8fc0f7e52.tar.gz
LDMicroGtk-34d5708e9506a4c7affd183363a1f2e8fc0f7e52.tar.bz2
LDMicroGtk-34d5708e9506a4c7affd183363a1f2e8fc0f7e52.zip
Added GTK main function
Diffstat (limited to 'ldmicro')
-rw-r--r--ldmicro/ldmicro.cpp11
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