示例#1
0
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(' '));
    }
}
示例#2
0
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();
}