المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Creating a Status Bar in DialogBased Application



C++ Programming
10-15-2009, 04:11 AM
Hi All,

I am having a dialog based application and i want to add a status bar to the dialog.

Code Sample:

I have written this in the OnInitDialog:



CStatusBar status;
status.CreateEx((AfxGetMainWnd),SBARS_SIZEGRIP,WS_CHILD|WS_VISIBLE|CBRS_TOP));

When the dialog lunches there is no status bar!!!

Can anyone tell me what i am doing wrong!!!

Thanks,
hari