//#define OV_DEBUG #include //#include #include "PCMan.h" #pragma managed #pragma managed // //If you want to use "#using" here instead of adding references in //the project property, another project property "Resolve #using referecen" //should also be set to "..\CSharpFormLibrary\bin\Debug" //#using //#using //#using //#using // using namespace System; using namespace System::Diagnostics; using namespace System::Windows::Forms; using namespace System::Collections; using namespace std; using namespace CSharpFormLibrary; ref class CSharpNotifyWrapper{ private: static IMENotifyForm^ m_instance = nullptr; public: static IMENotifyForm^ Instance() { if(m_instance == nullptr) m_instance = gcnew IMENotifyForm(); return m_instance; } }; HWND _CreateNotifyPage()//create { return (HWND)(safe_cast( CSharpNotifyWrapper::Instance()->Handle)->ToPointer()); } HWND _CreateNotifyPageWithHandle(HWND hwnd)//create { CSharpNotifyWrapper::Instance()->SetHWND(safe_cast(hwnd)); return (HWND)(safe_cast( CSharpNotifyWrapper::Instance()->Handle)->ToPointer()); } void _SetNotifyString(const wchar_t* notifyStr) { CSharpNotifyWrapper::Instance()->SetNotifyStr(gcnew String(notifyStr)); } void _ShowNotifyPage() { CSharpNotifyWrapper::Instance()->ShowNoActive(); } void _MoveNotifyPage(int x,int y) { CSharpNotifyWrapper::Instance()->SetLocation(x, y); } void _HideNotifyPage() { CSharpNotifyWrapper::Instance()->HideNoActive(); } void _ClearNotifyPage() { CSharpNotifyWrapper::Instance()->ClearNotify(); } void _ExpandNotify() //Žiļ} Notify window { //Not implemented? } void _EndNotifyPage() { CSharpNotifyWrapper::Instance()->DisposeForm(); }