Click here to Skip to main content
16,007,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about OnNewDocument() Pin
Nish Nishant5-Apr-02 23:37
sitebuilderNish Nishant5-Apr-02 23:37 
GeneralRe: Question about OnNewDocument() Pin
Michael P Butler5-Apr-02 23:39
Michael P Butler5-Apr-02 23:39 
GeneralRe: Question about OnNewDocument() Pin
Nish Nishant6-Apr-02 0:03
sitebuilderNish Nishant6-Apr-02 0:03 
GeneralRe: Question about OnNewDocument() Pin
Mazdak6-Apr-02 4:39
Mazdak6-Apr-02 4:39 
GeneralObject Browser Pin
Mangesh Sardesai5-Apr-02 16:59
Mangesh Sardesai5-Apr-02 16:59 
GeneralEmbedded buttons in CListCtrl Pin
5-Apr-02 14:34
suss5-Apr-02 14:34 
GeneralRe: Embedded buttons in CListCtrl Pin
Michael Dunn5-Apr-02 16:23
sitebuilderMichael Dunn5-Apr-02 16:23 
GeneralMFC bitmaps problem Pin
ejw5-Apr-02 13:43
ejw5-Apr-02 13:43 
I have 2 bitmaps(a red and green stoplight) that I want to display only one at a time at the same screen position. I have a boolean condition for 'go' that is updated at random time intervals elsewhere. The problem is that the bitmaps do not change from whatever the 'go' condition initially sends it. How do I get it to refresh and display the right image when the condition is updated?

void CLightDlg::OnPaint()
{
CPaintDC dc( this );
CBitmap bmp, *poldbmp;
CDC memdc;

if( GO )
bmp.LoadBitmap( IDB_GREEN ); //Green light bitmap

else
bmp.LoadBitmap( IDB_RED ); //Red light bitmap

memdc.CreateCompatibleDC( &dc );
poldbmp = memdc.SelectObject( &bmp );
dc.BitBlt( 78, 20, 59, 61, &memdc, 0, 0, SRCCOPY );
memdc.SelectObject( poldbmp );
}
GeneralRe: MFC bitmaps problem Pin
Christian Graus5-Apr-02 14:25
protectorChristian Graus5-Apr-02 14:25 
GeneralThank you so much! Pin
ejw5-Apr-02 14:43
ejw5-Apr-02 14:43 
Generalget char in console prob Pin
EvilSource5-Apr-02 12:53
EvilSource5-Apr-02 12:53 
GeneralRe: get char in console prob Pin
Dominik Reichl5-Apr-02 20:50
Dominik Reichl5-Apr-02 20:50 
Generalok... (DirectX)(WTL)(MFC) Pin
SilverShalkin5-Apr-02 12:51
SilverShalkin5-Apr-02 12:51 
GeneralRe: ok... (DirectX)(WTL)(MFC) Pin
Christian Graus5-Apr-02 13:41
protectorChristian Graus5-Apr-02 13:41 
GeneralRe: ok... (DirectX)(WTL)(MFC) Pin
SilverShalkin5-Apr-02 14:49
SilverShalkin5-Apr-02 14:49 
GeneralRe: ok... (DirectX)(WTL)(MFC) Pin
Christian Graus5-Apr-02 14:56
protectorChristian Graus5-Apr-02 14:56 
GeneralRe: ok... (DirectX)(WTL)(MFC) Pin
SilverShalkin5-Apr-02 15:11
SilverShalkin5-Apr-02 15:11 
GeneralRe: ok... (DirectX)(WTL)(MFC) Pin
Michael P Butler5-Apr-02 22:51
Michael P Butler5-Apr-02 22:51 
GeneralSystem resource information Pin
Cris5-Apr-02 9:31
Cris5-Apr-02 9:31 
GeneralRe: System resource information Pin
alex.barylski5-Apr-02 11:36
alex.barylski5-Apr-02 11:36 
Generalstrange behavior of my listen( ) Pin
lucy5-Apr-02 9:02
lucy5-Apr-02 9:02 
GeneralRe: strange behavior of my listen( ) Pin
lucy5-Apr-02 10:05
lucy5-Apr-02 10:05 
GeneralRegister the DLL ... Pin
Hadi Rezaee5-Apr-02 8:50
Hadi Rezaee5-Apr-02 8:50 
GeneralRe: Register the DLL ... Pin
Mazdak5-Apr-02 9:05
Mazdak5-Apr-02 9:05 
GeneralRe: Register the DLL ... Pin
Rickard Andersson205-Apr-02 9:08
Rickard Andersson205-Apr-02 9:08 

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.