Board index » Visual Studio » solve....

solve....

Visual Studio62
mfc)i create a class , its derived from CDialog class. A main window

has one button .i click the button ,then the modeless dialogbox is

open. i minimize the dialogbox ,it appear the top of the status bar.i

want it appear into the statusbar.how it is possible.please explain

with sample coding.





open modeless dialog:(button click coding)

********************

CChattingWindow* m_chatwindow=new

CChattingWindow(pkg.strText,0,pkg.strText);

m_chatwindow->Create(IDD_CHATWINDOW,NULL);

m_chatwindow->ShowWindow (1);



CDilog constructor:(Derived from CDialog)

******************

CChattingWindow::CChattingWindow(CWnd* pParent /*=NULL*/)

: CDialog(IDD, pParent)

{}


-
 

Re:solve....

nevis wrote:



Quote
mfc)i create a class , its derived from CDialog class. A main window

has one button .i click the button ,then the modeless dialogbox is

open. i minimize the dialogbox ,it appear the top of the status bar.i

want it appear into the statusbar.how it is possible.please explain

with sample coding.





open modeless dialog:(button click coding)

********************

CChattingWindow* m_chatwindow=new

CChattingWindow(pkg.strText,0,pkg.strText);

m_chatwindow->Create(IDD_CHATWINDOW,NULL);

m_chatwindow->ShowWindow (1);



CDilog constructor:(Derived from CDialog)

******************

CChattingWindow::CChattingWindow(CWnd* pParent /*=NULL*/)

: CDialog(IDD, pParent)

{}





Open the dialog resource IDD_CHATWINDOW, go to "Properties" and find

the value named "Application Window", and either check it or set it to true.



Alternatively, in your OnInitDialog() you can do something like this:



ModifyStyleEx(0, WS_EX_APPWINDOW, SWP_FRAMECHANGED);



-n

-