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

C / C++ / MFC

 
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 
GeneralRe: CStatic with bitmap Pin
Sujan Christo27-Sep-04 21:35
Sujan Christo27-Sep-04 21:35 
Use the following code

On the cpp file add the following.
CRect tmprect(100,100,300,300);
m_statTest.Create(_T(""), WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE, tmprect,this);
bm.LoadBitmap(IDB_BITMAP);
HBITMAP hBitmap = (HBITMAP)bm.GetSafeHandle();
m_statTest.SetBitmap(hBitmap);

on the header file create the instance of bm as
CBitmap bm;

This will work
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 
GeneralWindows DDK (Driver Development Kit) Pin
Jill Peterson27-Sep-04 16:30
Jill Peterson27-Sep-04 16:30 

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.