15,979
社区成员
发帖
与我相关
我的任务
分享
BOOL GameDlg::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
//浏览器面板
m_Html.Create(IDD_HtmlDialog,this);
m_Html.Navigate(url);
m_Html.ShowWindow(SW_SHOWMAXIMIZED);
bl = FALSE;
AfxGetMainWnd()-> SetIcon(AfxGetApp()-> LoadIcon(IDR_MAINFRAME),TRUE);
//设置标题
this->SetWindowTextA("第九城市 《热血无双》 极速登录器 ");
//缩放到任务栏托盘上
toTray();
return TRUE;
}
// GameDlg 消息处理程序
void GameDlg::OnSize(UINT nType, int cx, int cy)
{
m_Html.SetWindowPos(0,0,0,cx,cy,0);
//改变窗体大小
//CDialog::OnSize(nType, cx, cy);
}
这是我部分的代码!!