summaryrefslogtreecommitdiff
path: root/application.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2006-12-26 19:37:43 +0000
committerMatt Turner <mattst88@gmail.com>2006-12-26 19:37:43 +0000
commit38a93f5b90ddb6300e25934c4e43240b64d5f761 (patch)
treebc6253802a5fa1d96980d30aa900a52dabd3b1a9 /application.h
parent1c918cfffabb39f2ec977c46cef43c43072a5c3c (diff)
Starting work again. Added CApplication class for easier creation of the main window. Next looks like it's going to be a message class (GI_Message* function wrapper).HEADmaster
git-svn-id: svn://mattst88.com/svn/skygipp/trunk@4 a71248a0-261a-0410-b604-901f7c0bd773
Diffstat (limited to 'application.h')
-rw-r--r--application.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/application.h b/application.h
new file mode 100644
index 0000000..1643bb7
--- /dev/null
+++ b/application.h
@@ -0,0 +1,33 @@
+#ifndef APPLICATION_H
+#define APPLICATION_H
+
+#include <skygi/skygi.h>
+
+class CApplication {
+ public:
+ CApplication();
+ void SetStyle(unsigned int Application,
+ unsigned int Frame,
+ unsigned int Title,
+ unsigned int Menu,
+ unsigned int Bar,
+ unsigned int Client);
+ HRESULT Create(char * name, int x, int y, unsigned int w, unsigned int h, void * (*event)(HANDLE hWnd, s_gi_msg *msg));
+ HRESULT Destroy();
+ HRESULT Show();
+ HRESULT Hide();
+ HRESULT SetPos(int x, int y);
+ HRESULT SetSize(int w, int h);
+ HANDLE GetHANDLE();
+ private:
+ HANDLE hWnd;
+ sCreateApplication * app;
+ unsigned int StyleApplication;
+ unsigned int StyleFrame;
+ unsigned int StyleTitle;
+ unsigned int StyleMenu;
+ unsigned int StyleBar;
+ unsigned int StyleClient;
+};
+
+#endif