Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stopping a thread Pin
Sujan Christo28-Sep-04 1:40
Sujan Christo28-Sep-04 1:40 
GeneralRe: Stopping a thread Pin
Sujan Christo28-Sep-04 21:12
Sujan Christo28-Sep-04 21:12 
GeneralRe: Stopping a thread Pin
Andrzej Markowski28-Sep-04 22:24
Andrzej Markowski28-Sep-04 22:24 
GeneralRe: Stopping a thread Pin
Sujan Christo28-Sep-04 22:57
Sujan Christo28-Sep-04 22:57 
GeneralRe: Stopping a thread Pin
Sujan Christo28-Sep-04 23:52
Sujan Christo28-Sep-04 23:52 
GeneralRe: Stopping a thread Pin
David Crow28-Sep-04 4:35
David Crow28-Sep-04 4:35 
GeneralRe: Stopping a thread Pin
Sujan Christo28-Sep-04 19:48
Sujan Christo28-Sep-04 19:48 
GeneralCStatic with bitmap Pin
GDavy27-Sep-04 20:20
GDavy27-Sep-04 20:20 
Ok this has to be obvious, but somehow I must be missing something somewhere...
I made a dialog and on it I placed a static control with a bitmap on it (in the resource editor). All well, but when I want to change the bitmap displayed on the control, the control vanishes(does not get redrawn)...
I tried to create a CStatic control on the stack, but that one never shows... What`s wrong with this code?

This is placed in the OnInitDialog of the dialog:

m_statTest.Create(_T(""), WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE, tmprect,this);
m_statTest.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(IDB_MYBITMAP)));

The m_statTest control is never displayed ( and yes, the tmprect is inside the CDialog frame)...
Another CStatic control that I created with the classwizard from a CStatic on the Dialog resource, also disapears when I call the SetBitmap on it...
My bitmap has 256 colors, might that be the prob??? (although it does display correct when I never use the setbimap on the control added in the resource editor)

Any help is greatly appreciated...
Davy

GeneralRe: CStatic with bitmap Pin
Sujan Christo27-Sep-04 21:35
Sujan Christo27-Sep-04 21:35 
GeneralRe: CStatic with bitmap Pin
Andrzej Markowski27-Sep-04 21:59
Andrzej Markowski27-Sep-04 21:59 
GeneralThanks for solution+ memory problem? Pin
GDavy27-Sep-04 22:16
GDavy27-Sep-04 22:16 
GeneralRe: Thanks for solution+ memory problem? Pin
Andrzej Markowski27-Sep-04 23:54
Andrzej Markowski27-Sep-04 23:54 
GeneralDirectShow Pin
dudic27-Sep-04 18:32
dudic27-Sep-04 18:32 
GeneralMointor File activity Pin
Anonymous27-Sep-04 18:26
Anonymous27-Sep-04 18:26 
GeneralRe: Mointor File activity Pin
Vikash Dubey27-Sep-04 20:54
Vikash Dubey27-Sep-04 20:54 
GeneralDifferences between semaphores,critical section and mutexes Pin
Raghunandan S27-Sep-04 17:57
Raghunandan S27-Sep-04 17:57 
GeneralRe: Differences between semaphores,critical section and mutexes Pin
22491727-Sep-04 18:00
22491727-Sep-04 18:00 
GeneralProblem with CEdit box Pin
Neelesh K J Jain27-Sep-04 17:48
Neelesh K J Jain27-Sep-04 17:48 
GeneralRe: Problem with CEdit box Pin
Sujan Christo27-Sep-04 18:15
Sujan Christo27-Sep-04 18:15 
GeneralRe: Problem with CEdit box Pin
Neelesh K J Jain27-Sep-04 19:11
Neelesh K J Jain27-Sep-04 19:11 
GeneralRe: Problem with CEdit box Pin
Sujan Christo27-Sep-04 19:26
Sujan Christo27-Sep-04 19:26 
GeneralRe: Problem with CEdit box Pin
Neelesh K J Jain27-Sep-04 20:37
Neelesh K J Jain27-Sep-04 20:37 
GeneralRe: Problem with CEdit box Pin
Neelesh K J Jain27-Sep-04 20:55
Neelesh K J Jain27-Sep-04 20:55 
GeneralRe: Problem with CEdit box Pin
Sujan Christo27-Sep-04 22:23
Sujan Christo27-Sep-04 22:23 
GeneralRe: Problem with CEdit box Pin
Sujan Christo28-Sep-04 8:57
Sujan Christo28-Sep-04 8:57 

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.