有个API函数是专门干这个的,可设置最大化和最小化时窗口的位置。
叫什么来着??忘啦!

解决方案 »

  1.   

    BOOL SetWindowPos(    HWND hWnd, // handle of window
        HWND hWndInsertAfter, // placement-order handle
        int X, // horizontal position
        int Y, // vertical position
        int cx, // width
        int cy, // height
        UINT uFlags  // window-positioning flags
       );嘻嘻,是它吗?
      

  2.   

    是不是说像FlashGet和网络蚂蚁哪样?我也想知道!
      

  3.   

    flashGet他们就是Create一个没有Caption并且topmost的对话框CDialog dlg;//这个对话框的属性要编辑好呀...样子最好让人看不出是对话矿,上面放写控件遮盖..
    CRect rc;
    dlg.Create(ID_TOPDLG);
    dlg.GetWindowRect(&rc);
    dlg.ClientToScreen(&rc);
    dlg.SetWindowPos(&wndTopMost,rc.left,rc.top,rc.Width(),rc.Height(),SWP_NOACTIVATE);上面几行就创建出类似蚂蚁和flashget那样在顶端的小窗口了.
      

  4.   

    DWORD dwExStyle = GetWindowLong(Application->Handle, GWL_EXSTYLE);
    dwExStyle |= WS_EX_TOOLWINDOW;
    SetWindowLong(Application->Handle, GWL_EXSTYLE, dwExStyle);
      

  5.   

    NowCan说得对,
    111222文不对题。