而对话框上面又需要有“最大化”“最小化”和“关闭”三个按钮。

解决方案 »

  1.   

    刚才用AfxGetMainWnd()->SendMessage(WM_SETICON,TRUE,(LPARAM)hIcon);
    试了一下,结果两者都改变了。唉,自绘标题栏吧。
      

  2.   

    但是如果自己绘标题栏,应用程序标栏的位置的RECT哪里去取啊?
    Thanx in adv.
      

  3.   

    在OnPaint里有if( IsIconic 哪个地方,如果想法先使窗体最小,得到那个dc,就行了。
      

  4.   

    you can consult this http://www.codeproject.com/dialog/skindlg.asp
    i have writen an example such as this.
      

  5.   

    kingzai老师,你的程序没有在taskbar上面画图标的嘛~
      

  6.   

    try DrawIcon function, tomorrow I will show you my code
      

  7.   

    //add this in construction function or OnInitDialog
    m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);