MSWindows::BOOL WINAPI DllMain(MSWindows::HINSTANCE hInstance, MSWindows::DWORD dwReason, LPVOID /*lpReserved*/) { if (dwReason == DLL_PROCESS_ATTACH) { ;// _Module.Init(ObjectMap, hInstance, &LIBID_LXIMAGEEDITORLib); MSWindows::DisableThreadLibraryCalls(hInstance); } else if (dwReason == DLL_PROCESS_DETACH) { _Module.Term(); } return true; // ok }
MSWindows::BOOL WINAPI DllMain(MSWindows::HINSTANCE hInstance, MSWindows::DWORD dwReason, void* /*lpReserved*/) { if (dwReason == DLL_PROCESS_ATTACH) { // _Module.Init(ObjectMap, hInstance, &LIBID_LXUILib); _Module.m_hInstance = hInstance; MSWindows::DisableThreadLibraryCalls(hInstance); // LDraw::Init(); { MSWindows::WNDCLASSEXW wc = {0}; wc.cbSize = sizeof(wc); wc.style = CS_DBLCLKS; wc.hInstance = hInstance; wc.lpszClassName = L"lxui_window_class"; wc.lpfnWndProc = System::UI::WndProc; wc.hCursor = NULL;//MSWindows::LoadCursorW(NULL, _IDC_ARROW_W); MSWindows::RegisterClassExW(&wc); } #if 0 #ifdef _DEBUG // Assert that the css properties are sorted for (int i = 1; i < CSSPropertyCount; i++) { ASSERT(wcscmp(csstyleList[i-1].m_name, csstyleList[i].m_name) < 0); } #endif { for (int i = 0; i < SystemColorsCount; i++) { SystemColors[i].clr = GetSysColor(SystemColors[i].clr-1); } } #endif #if 0 wndClasses(); #endif } else if (dwReason == DLL_PROCESS_DETACH) { _Module.Term(); } return true; // ok }