CPrivateInfo::CPrivateInfo(CConnect *link, IMakeXml *xml, UserInformation myself, QWidget *parent) : QDialog(parent), m_link(link), m_MXml(xml), m_userinfo(myself), ui(new Ui::CPrivateInfo) { ui->setupUi(this); initWnd(); initWidget(); initAction(); }
CTalkDlg::CTalkDlg(CConnect *link, IMakeXml *xml, FriendInformation frd,QWidget *parent) :QDialog(parent), ui(new Ui::CTalkDlg), m_link(link), m_MXml(xml), m_frd(frd) { ui->setupUi(this); initWnd(); initWidget(); initAction(); }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int ShowCmd) { if(!initWnd(hInstance,ShowCmd)) { MessageBox(0,"Creation Failed",0,0); return 0; } initD3D(); return MsgLoop(); }
INT WINAPI WinMain(HINSTANCE hCI, HINSTANCE hPI, LPSTR cmdstr, int cmdval) { globals.inst = hCI; globals.log = fopen("gl4.log", "w"); globals.draw = false; initWnd(); if(globals.wnd) globals.run = true; while(globals.run) { MSG msg; if(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } if(globals.draw) drawGL(); } fclose(globals.log); return 0; }