Click here to Skip to main content
15,909,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThread problem Pin
mt_samiei5-Nov-06 20:48
mt_samiei5-Nov-06 20:48 
AnswerRe: Thread problem Pin
_tasleem6-Nov-06 2:01
_tasleem6-Nov-06 2:01 
AnswerRe: Thread problem Pin
Mark Salsbery6-Nov-06 7:49
Mark Salsbery6-Nov-06 7:49 
QuestionI don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani5-Nov-06 20:25
dharani5-Nov-06 20:25 
AnswerRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT5-Nov-06 21:03
Hamid_RT5-Nov-06 21:03 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani5-Nov-06 21:14
dharani5-Nov-06 21:14 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT5-Nov-06 21:24
Hamid_RT5-Nov-06 21:24 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani5-Nov-06 21:58
dharani5-Nov-06 21:58 
Hi static CLogoStretched m_BackgroundAddOnNoe;
static CBitmap m_BitmapAddOnNoe;

if(GetDlgItem(hDlg, IDB_MAP_ADDON_10_NOE))
{
if(m_BitmapAddOnNoe.LoadBitmap(IDB_BITMAP_ADDON_10_NOE))
{
VERIFY(m_BackgroundAddOnNoe.SubclassDlgItem(IDB_MAP_ADDON_10_NOE, CDialog::FromHandle(hDlg)));
m_BackgroundAddOnNoe.SetBitmap(&m_BitmapAddOnNoe, FALSE, FALSE);
}

}

Here IDB_BITMAP_ADDON_10_NOE is the bitmap which is loaded . CLogoStreched is defined as below
I do not understand the functionalities associated with CLogoStreched ...Please tell me what you get at it...

class AFX_EXT_CLASS CLogoStretched : public CStatic
{
// Construction
public:

CLogoStretched();

CBitmap* GetBitmap() { return m_pBitmap; }
void SetBitmap(CBitmap* pBitmap, BOOL bKeepRatio = TRUE, BOOL bTransparent = TRUE, COLORREF TranspColor = RGB(255,255,255), BOOL bResizeLogo = TRUE) { m_pBitmap = pBitmap; m_bKeepRatio = bKeepRatio; m_bTransparent = bTransparent; m_TranspColor = TranspColor; m_bResizeLogo = bResizeLogo;}
void ResetBitmap() { m_pBitmap = NULL; }

private:

CBitmap* m_pBitmap;
BOOL m_bKeepRatio;
BOOL m_bTransparent;
BOOL m_bResizeLogo;
COLORREF m_TranspColor;

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLogoStretched)
//}}AFX_VIRTUAL

// Implementation
public:
virtual ~CLogoStretched();

// Generated message map functions
protected:
//{{AFX_MSG(CLogoStretched)
afx_msg void OnPaint();
long GetBmWidthBytes(long bmWidth, WORD bmBitsPixel);
//}}AFX_MSG

DECLARE_MESSAGE_MAP()

};

redindian

GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT5-Nov-06 23:59
Hamid_RT5-Nov-06 23:59 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
dharani6-Nov-06 0:51
dharani6-Nov-06 0:51 
GeneralRe: I don't know how to resize my Bitmap with 120 DPI !!! Pin
Hamid_RT6-Nov-06 8:15
Hamid_RT6-Nov-06 8:15 
Questionunresolved external symbol _wWinMain@16 Pin
Raghavendra Pise5-Nov-06 20:20
Raghavendra Pise5-Nov-06 20:20 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
Nibu babu thomas5-Nov-06 20:53
Nibu babu thomas5-Nov-06 20:53 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 0:40
Raghavendra Pise6-Nov-06 0:40 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
Rage5-Nov-06 20:53
professionalRage5-Nov-06 20:53 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
Michael Dunn5-Nov-06 20:54
sitebuilderMichael Dunn5-Nov-06 20:54 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Rage5-Nov-06 23:29
professionalRage5-Nov-06 23:29 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 0:43
Raghavendra Pise6-Nov-06 0:43 
GeneralRe: unresolved external symbol _wWinMain@16 Pin
Raghavendra Pise6-Nov-06 0:37
Raghavendra Pise6-Nov-06 0:37 
AnswerRe: unresolved external symbol _wWinMain@16 Pin
Hamid_RT5-Nov-06 21:24
Hamid_RT5-Nov-06 21:24 
QuestionHow to implement NTP n C (or gcc)? Pin
Andy Rama5-Nov-06 20:18
Andy Rama5-Nov-06 20:18 
QuestionMFC Library question, VC++ 6.0 Pin
HakunaMatada5-Nov-06 20:10
HakunaMatada5-Nov-06 20:10 
AnswerRe: MFC Library question, VC++ 6.0 Pin
Rage5-Nov-06 20:57
professionalRage5-Nov-06 20:57 
AnswerRe: MFC Library question, VC++ 6.0 Pin
PJ Arends5-Nov-06 23:18
professionalPJ Arends5-Nov-06 23:18 
QuestionBYTE Array Calculation ? Pin
Sakthiu5-Nov-06 20:01
Sakthiu5-Nov-06 20:01 

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.