Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDoes anyone know how to do Audio Fading with Direct show? Pin
Bart-Man7-May-01 11:07
Bart-Man7-May-01 11:07 
QuestionLPDISPATCH problem ? Pin
latunos7-May-01 7:23
latunos7-May-01 7:23 
GeneralUnicode Windows ME Pin
Andy Shaw7-May-01 6:41
Andy Shaw7-May-01 6:41 
GeneralRe: Try this. Pin
7-May-01 11:47
suss7-May-01 11:47 
QuestionWhat is wrong with this code? Pin
mvworld7-May-01 4:20
mvworld7-May-01 4:20 
GeneralUsing the ellipsis (...) Pin
mvworld7-May-01 3:52
mvworld7-May-01 3:52 
GeneralRe: Using the ellipsis (...) Pin
Chris Losinger7-May-01 4:07
professionalChris Losinger7-May-01 4:07 
GeneralDesparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 3:49
suss7-May-01 3:49 
I posted the following message a couple of days ago but haven't received a single reponse yet. I was wondering if it is the way I describe the problem or it is just too difficult to takcle with.
I am still struggling here hoping someone can point me to the right direction.

*******************************************************************
In my project, I declared a toolbar button structure TBBUTTON.
And loaded up some bitmap buttons dynamically into the toolbar by using toolBarCtrl.InsertButton( 0, &button ); in a for loop.

Then I set TBBUTTON's state and style as
button.fsState = TBSTATE_ENABLED;
button.fsStyle = TBSTYLE_BUTTON;

The problem now is that only 2 out of 10 buttons are being displayed on the toolbar. The rest of the buttons somehow got hidden in the back.
By resizing the window a little bit or toggling toolbar(show/hide), all the buttons get showed up. Obviously all the buttons are loaded up properly at run time but some buttons are just stay back invisible. If I drag and move the window around rather than tweaking the window size, those buttons are still hiding in the background.

Any thoughts what might caused this problem? Any suggestions on how to resolve that?

By the way, how I can modify my window's size just a tiny bit(I mean the SLIGHTEST change in either width or height. I wrote something like this, it solved that hidden button problem but the window gets changed the position too much.

CRect rect;
GetClientRect( &rect );

SetWindowPos( NULL, rect.left, rect.top, rect.Width(), rect.Height()+ 1/1000, SWP_NOZORDER | SWP_NOMOVE);

Thanks,

Allison
Confused | :confused:
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
#realJSOP7-May-01 4:13
professional#realJSOP7-May-01 4:13 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 4:36
suss7-May-01 4:36 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 6:14
suss7-May-01 6:14 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 10:37
suss7-May-01 10:37 
GeneralProblem with WriteFile and GetOverlappedResult Pin
fd97507-May-01 2:43
professionalfd97507-May-01 2:43 
General'for' statement can't work! Pin
hearties7-May-01 0:09
hearties7-May-01 0:09 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 0:46
professional#realJSOP7-May-01 0:46 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:11
hearties7-May-01 1:11 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:24
professional#realJSOP7-May-01 1:24 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:40
hearties7-May-01 1:40 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:50
professional#realJSOP7-May-01 1:50 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 2:16
hearties7-May-01 2:16 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 2:50
professional#realJSOP7-May-01 2:50 
GeneralRe: 'for' statement can't work! Pin
hearties9-May-01 5:55
hearties9-May-01 5:55 
GeneralRe: 'for' statement can't work! Pin
Wojciech Zaremba7-May-01 2:42
Wojciech Zaremba7-May-01 2:42 
Question[q] How to control the other program's scrollbar? Pin
linugee6-May-01 22:44
linugee6-May-01 22:44 
AnswerRe: [q] How to control the other program's scrollbar? Pin
Christian Graus6-May-01 23:49
protectorChristian Graus6-May-01 23: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.