summaryrefslogtreecommitdiff
path: root/widgettitle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widgettitle.cpp')
-rw-r--r--widgettitle.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/widgettitle.cpp b/widgettitle.cpp
new file mode 100644
index 0000000..9f7a918
--- /dev/null
+++ b/widgettitle.cpp
@@ -0,0 +1,25 @@
+#include <skygi/skygi.h>
+
+#include "widgettitle.h"
+
+CTitle::CTitle() {
+ this->hWnd = NULL;
+ memset(this->Text, '\0', strlen(this->Text));
+}
+
+HRESULT CTitle::Create(HANDLE parent, char * name, int x, int y, int w, int h, unsigned int ullcon, unsigned int style) {
+ this->hWnd = GI_WidgetTitleCreate(parent, name, x, y, w, h, ullcon, style);
+ if (this->hWnd) {
+ return S_OK;
+ }
+ return E_HANDLE;
+}
+
+int CTitle::SetText(char * text) {
+ strncpy(this->Text, text, strlen(this->Text));
+ return GI_WidgetTitleSet(this->hWnd, text);
+}
+
+char * CTitle::GetText() {
+ return this->Text;
+}