View Full Version : Using Clanlib In Mfc Child Window

10-27-2014, 08:20 AM
my mfc appliction need richedit and listctrl, so i use clanlib in child window just as :

1. Create child window, use its hwnd to create DisplayWindow by DisplayWindowDescription::set_handle;
2. For keep mfc message loop, so i add KeepAlive::process(1) in CWinApp::PumpMessage;
3. Also I Have to create a timer for all clanlib guicomponent's reflash(eg: sprite update; GUIWindowManager::update, complete_painting ...);

Although Its can Run, but it is so ugly, and i don't know whether exist other problems.

Ask for help.

sorry for my poor english:cry:;

10-30-2014, 12:51 PM
That's probably the only way.