Click here to Skip to main content
15,887,854 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: problem [modified] Pin
Alain Rist13-Oct-10 4:52
Alain Rist13-Oct-10 4:52 
QuestionFire connection point event from ATL Service Pin
pratik_mishra3511-Oct-10 2:17
pratik_mishra3511-Oct-10 2:17 
Questionhow show the tooltip in each platform(vb,c#) Pin
765studio@gmail.com8-Oct-10 20:35
765studio@gmail.com8-Oct-10 20:35 
QuestionProblems to print Pin
Dansveen7-Oct-10 11:42
Dansveen7-Oct-10 11:42 
QuestionWhy normal virtual function required blank body in base class Pin
am 20096-Oct-10 2:22
am 20096-Oct-10 2:22 
AnswerRe: Why normal virtual function required blank body in base class Pin
Alain Rist6-Oct-10 3:13
Alain Rist6-Oct-10 3:13 
QuestionEnable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo5-Oct-10 6:58
karuuzo5-Oct-10 6:58 
AnswerRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist5-Oct-10 21:16
Alain Rist5-Oct-10 21:16 
Hi,

You are mixing the control style, must have PBS_MARQUEE, and it's state.

Set the control style either in your DIALOG resource descriptor:
CONTROL         "",IDC_PROGRESS, "msctls_progress32", PBS_MARQUEE | WS_BORDER, 23, 38, 80, 14

or in your OnInitDialog() handler:
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{	
    // ...
    CProgressBarCtrl(GetDlgItem(IDC_PROGRESS)).ModifyStyle(0, PBS_MARQUEE);
    return TRUE;
}

and in your OnOK() handler switch the moving state, for instance:
LRESULT OnOK(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{	
    static bool bAnimated = false;
    CProgressBarCtrl(GetDlgItem(IDC_PROGRESS)).SetMarquee(bAnimated = !bAnimated);
    return 0;
}

cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)

GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 1:13
karuuzo6-Oct-10 1:13 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist6-Oct-10 2:09
Alain Rist6-Oct-10 2:09 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 3:48
karuuzo6-Oct-10 3:48 
AnswerRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist6-Oct-10 4:19
Alain Rist6-Oct-10 4:19 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 5:14
karuuzo6-Oct-10 5:14 
AnswerRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Alain Rist6-Oct-10 5:23
Alain Rist6-Oct-10 5:23 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Richard MacCutchan6-Oct-10 4:03
mveRichard MacCutchan6-Oct-10 4:03 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 4:12
karuuzo6-Oct-10 4:12 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
Richard MacCutchan6-Oct-10 5:02
mveRichard MacCutchan6-Oct-10 5:02 
GeneralRe: Enable moving marquee progress bar (C++, ATL/WTL, XP, VS2008) Pin
karuuzo6-Oct-10 5:23
karuuzo6-Oct-10 5:23 
QuestionRegarding Tools Pin
Anil Kumar.Arvapalli3-Oct-10 21:16
Anil Kumar.Arvapalli3-Oct-10 21:16 
AnswerRe: Regarding Tools Pin
LunaticFringe4-Oct-10 12:28
LunaticFringe4-Oct-10 12:28 
AnswerRe: Regarding Tools Pin
federico.strati5-Oct-10 3:19
federico.strati5-Oct-10 3:19 
QuestionDynamic Owner-Drawn CListBox Derivative - Owner Draw Problem Pin
Kyudos3-Oct-10 13:00
Kyudos3-Oct-10 13:00 
AnswerRe: Dynamic Owner-Drawn CListBox Derivative - Owner Draw Problem Pin
Kyudos3-Oct-10 17:24
Kyudos3-Oct-10 17:24 
QuestionCustomize CMFCPropertyGrid Pin
silversamand1-Oct-10 21:37
silversamand1-Oct-10 21:37 
QuestionHow to associate CMap key value to CComboBox Pin
ptr_Electron27-Sep-10 0:49
ptr_Electron27-Sep-10 0:49 

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.