void BakaEngine::BakaFitWindow(QStringList &args) { if(args.empty()) FitWindow(); else { QString arg = args.front(); args.pop_front(); if(args.empty()) FitWindow(arg.toInt()); else InvalidParameter(args.join(' ')); } }
void HyperLink::OnSubclass() { ::SetWindowLong( hwnd, GWL_STYLE, ::GetWindowLong(hwnd, GWL_STYLE) | SS_NOTIFY); underlineFont = DeriveFont(NULL, false, true, -1); ::SendMessage(hwnd, WM_SETFONT, (WPARAM) underlineFont, (LPARAM) 0); FitWindow(); cursor = LoadHandCursor(); }