Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can i read environment variable from c program Pin
Code-o-mat28-Sep-09 20:25
Code-o-mat28-Sep-09 20:25 
AnswerRe: How can i read environment variable from c program Pin
«_Superman_»28-Sep-09 20:47
professional«_Superman_»28-Sep-09 20:47 
QuestionCListCtrl Pin
john563228-Sep-09 20:01
john563228-Sep-09 20:01 
AnswerRe: CListCtrl Pin
Code-o-mat28-Sep-09 20:22
Code-o-mat28-Sep-09 20:22 
GeneralRe: CListCtrl Pin
john563228-Sep-09 20:25
john563228-Sep-09 20:25 
GeneralRe: CListCtrl Pin
Code-o-mat28-Sep-09 20:37
Code-o-mat28-Sep-09 20:37 
QuestionConstrucor getting called twice........ Pin
hrishiS28-Sep-09 19:31
hrishiS28-Sep-09 19:31 
AnswerRe: Construcor getting called twice........ Pin
Iain Clarke, Warrior Programmer28-Sep-09 19:40
Iain Clarke, Warrior Programmer28-Sep-09 19:40 
AnswerRe: Construcor getting called twice........ Pin
Alan Balkany5-Oct-09 4:40
Alan Balkany5-Oct-09 4:40 
QuestionPassing data in dialog based application (model dialog) Pin
hrishiS28-Sep-09 18:54
hrishiS28-Sep-09 18:54 
AnswerRe: Passing data in dialog based application (model dialog) Pin
Solon_lee28-Sep-09 19:30
Solon_lee28-Sep-09 19:30 
GeneralRe: Passing data in dialog based application (model dialog) Pin
hrishiS28-Sep-09 19:32
hrishiS28-Sep-09 19:32 
AnswerRe: Passing data in dialog based application (model dialog) Pin
Iain Clarke, Warrior Programmer28-Sep-09 19:50
Iain Clarke, Warrior Programmer28-Sep-09 19:50 
GeneralRe: Passing data in dialog based application (model dialog) Pin
hrishiS28-Sep-09 20:12
hrishiS28-Sep-09 20:12 
QuestionHow to get list of worksheet names using VC++ [modified] Pin
gtag28-Sep-09 18:09
gtag28-Sep-09 18:09 
AnswerRe: How to get list of worksheet names using VC++ Pin
Steve1443-Nov-09 18:38
Steve1443-Nov-09 18:38 
QuestionGetDlgItem Pin
voisdnull28-Sep-09 17:08
voisdnull28-Sep-09 17:08 
AnswerRe: GetDlgItem Pin
Rajesh R Subramanian28-Sep-09 18:21
professionalRajesh R Subramanian28-Sep-09 18:21 
GeneralRe: GetDlgItem Pin
Iain Clarke, Warrior Programmer28-Sep-09 19:52
Iain Clarke, Warrior Programmer28-Sep-09 19:52 
GeneralRe: GetDlgItem Pin
voisdnull29-Sep-09 4:48
voisdnull29-Sep-09 4:48 
GeneralRe: GetDlgItem Pin
Iain Clarke, Warrior Programmer1-Oct-09 1:39
Iain Clarke, Warrior Programmer1-Oct-09 1:39 
GeneralRe: GetDlgItem Pin
voisdnull1-Oct-09 7:34
voisdnull1-Oct-09 7:34 
QuestionBitmaps won't show in splitter pane - only one at the time. Seeking advice how to trobleshoot. Pin
Vaclav_28-Sep-09 15:01
Vaclav_28-Sep-09 15:01 
I am still futzing with my simple two-pane splitter – left pane displays tree control and the right pane displays the views selected in the tree control – parent node and some children nodes( one AVI stream and four selected frames from the AVI).
The children nodes are bitmaps - pages in tab control. The different bitmap HBITMAP structures are in the associated document attached via popup menu. Sound complicated – but that is not the issue.  
Here is my dilemma – I can display only single tab bitmap. As long as I have “selected “ only one I am OK. As soon as I select another one the first one won’t display again when the tab is selected.( The bitmap selections are different frames from AVI steam).

I do verify the actual width of the attached bitmap / frame and it is OK.

Please ignore the "->" is is correct in the code just not here!


m_bmpInfo = m_CCCC_ParserDoc->m_bmpInfo[m_BitmapIndex];
VERIFY(m_bmpInfo->bmWidth > 0);
I do draw (stretch) the bitmap and it returns OK, but no bitmap in view!
     if(!pDC->StretchBlt(0,00,rect.right,rect.bottom,&dcMemory ,
          0,0,bmpInfo->bmWidth,bmpInfo->bmHeight,SRCCOPY /*WHITENESS */ ))

          TRACE("\n Failed pDC->StretchBlt");
     else
     {
          TRACE("\n Draw Bitmap OK ");

I tried MoveWindow – I had some issues with it when deleting views in splitter frame, but it did not do the trick.
I tried ShowWindow – no luck.
The bottom line is – the bitmap structure is correct, the bitmap draws but does not show.
I am not looking for solution, just an advice what else I should try to find out where are   these bitmaps.
Any constructive suggestion is as always appreciated.
AnswerRe: Bitmaps won't show in splitter pane - only one at the time. Seeking advice how to trobleshoot. Pin
Richard MacCutchan28-Sep-09 22:27
mveRichard MacCutchan28-Sep-09 22:27 
GeneralRe: Bitmaps won't show in splitter pane - only one at the time. Seeking advice how to trobleshoot. Pin
Vaclav_29-Sep-09 3:48
Vaclav_29-Sep-09 3:48 

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.