Click here to Skip to main content
14,975,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Offer user a list of choices from a command prompt Pin
KevinSheedy21-Dec-05 4:10
MemberKevinSheedy21-Dec-05 4:10 
GeneralRe: Offer user a list of choices from a command prompt Pin
khan++21-Dec-05 4:27
Memberkhan++21-Dec-05 4:27 
GeneralRe: Offer user a list of choices from a command prompt Pin
RChin21-Dec-05 6:20
MemberRChin21-Dec-05 6:20 
QuestionFindResource -Problem Pin
kotiramkoteswararao20-Dec-05 23:53
Memberkotiramkoteswararao20-Dec-05 23:53 
AnswerRe: FindResource -Problem Pin
includeh1021-Dec-05 2:23
Memberincludeh1021-Dec-05 2:23 
QuestionHow can I add a status bar to a dialog..... Pin
Owner drawn20-Dec-05 23:53
MemberOwner drawn20-Dec-05 23:53 
AnswerRe: How can I add a status bar to a dialog..... Pin
Owner drawn21-Dec-05 0:08
MemberOwner drawn21-Dec-05 0:08 
AnswerRe: How can I add a status bar to a dialog..... Pin
Ward21-Dec-05 0:13
MemberWard21-Dec-05 0:13 
Try using InitCommonControls or InitCommonControlsEx in the beginning of your program.

INITCOMMONCONTROLSEX InitCtrls;<br />
InitCtrls.dwSize = sizeof(INITCOMMONCONTROLSEX);<br />
InitCtrls.dwICC = ICC_BAR_CLASSES;	<br />
InitCommonControlsEx(&InitCtrls);//also check the returnvalue of this API


If it still does not work, you should try to add it through code:

hStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL,<br />
        WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0,<br />
        hwnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);<br />
int statwidths[] = {100, -1};<br />
SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);<br />
SendMessage(hStatus, SB_SETTEXT, 0, (LPARAM)"Some text");


kind regards,

Ward
AnswerRe: How can I add a status bar to a dialog..... Pin
Rage21-Dec-05 1:12
professionalRage21-Dec-05 1:12 
AnswerThanks a lot guys Pin
Owner drawn21-Dec-05 1:56
MemberOwner drawn21-Dec-05 1:56 
QuestionSubclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
WernerP20-Dec-05 23:51
MemberWernerP20-Dec-05 23:51 
AnswerRe: Subclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
Rage21-Dec-05 1:14
professionalRage21-Dec-05 1:14 
GeneralRe: Subclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
WernerP21-Dec-05 4:47
MemberWernerP21-Dec-05 4:47 
QuestionMFC functions fail when called from exported function in DLL Pin
Mayank Ji20-Dec-05 23:32
MemberMayank Ji20-Dec-05 23:32 
AnswerRe: MFC functions fail when called from exported function in DLL Pin
krmed21-Dec-05 2:01
Memberkrmed21-Dec-05 2:01 
QuestionExplorer list control Pin
rrrado20-Dec-05 23:30
Memberrrrado20-Dec-05 23:30 
AnswerRe: Explorer list control Pin
khan++21-Dec-05 3:32
Memberkhan++21-Dec-05 3:32 
QuestionRe: Explorer list control Pin
rrrado21-Dec-05 3:55
Memberrrrado21-Dec-05 3:55 
AnswerRe: Explorer list control Pin
khan++21-Dec-05 4:20
Memberkhan++21-Dec-05 4:20 
JokeRe: Explorer list control Pin
rrrado21-Dec-05 22:13
Memberrrrado21-Dec-05 22:13 
QuestionCan I call conf.exe within Service using vc++ Pin
trinadh_t20-Dec-05 22:00
Membertrinadh_t20-Dec-05 22:00 
QuestionLanguage Translation( Urgent pls)........ Pin
RockyJames20-Dec-05 21:35
MemberRockyJames20-Dec-05 21:35 
QuestionMFC FileOpen handle Pin
vikas amin20-Dec-05 19:58
Membervikas amin20-Dec-05 19:58 
AnswerRe: MFC FileOpen handle Pin
Indivara21-Dec-05 0:00
professionalIndivara21-Dec-05 0:00 
QuestionAn object which can mask only from copy and Paste Pin
harijulie20-Dec-05 19:45
Memberharijulie20-Dec-05 19:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.