Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related divider.cpp00001 // 00002 // SYNTOPIA. See http://Syntopia.sourceforge.net for details and documentation. 00003 // 00004 // Author of this file: Mikael Hvidtfeldt Christensen (mikaelc@users.sourceforge.net) 00005 // 00006 00007 00008 00009 #include "divider.h" 00010 00011 namespace GUIToolkit { 00012 00013 divider::divider() {} 00014 00015 divider::~divider() {} 00016 00017 00018 void divider::PutInWinForm(WinForm * WF, int x0, int x1, int y0, int y1) { 00019 ID = (HMENU)GUIControl::GUIInstance->Register(this); 00020 topWF = WF; 00021 00022 hButton = CreateWindowEx(WS_EX_CLIENTEDGE, "STATIC", "", WS_CHILD | WS_EX_TRANSPARENT | WS_VISIBLE, 00023 00024 x0, x1,y0 ,y1, WF->hwnd, ID, GetModuleHandle(NULL), NULL); 00025 00026 if(hButton == NULL) { 00027 MessageBox(WF->hwnd, "Could not create Divider.", "Error", MB_OK | MB_ICONERROR); 00028 // Todo: Should Throw Error 00029 } 00030 00031 00032 } 00033 00034 }; // end of namespace Docs made by Doxygen. Email: Mikael Christensen |