Click here to Skip to main content
14,975,961 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreateBitmapIndirect() doesnt create bitmap Pin
globus0008-Apr-10 2:08
Memberglobus0008-Apr-10 2:08 
AnswerRe: CreateBitmapIndirect() doesnt create bitmap Pin
KarstenK8-Apr-10 3:23
mveKarstenK8-Apr-10 3:23 
AnswerRe: CreateBitmapIndirect() doesnt create bitmap Pin
Jonathan Davies8-Apr-10 5:23
MemberJonathan Davies8-Apr-10 5:23 
QuestionWidest Character and Height of the character Pin
shiv@nand8-Apr-10 1:13
Membershiv@nand8-Apr-10 1:13 
AnswerRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 1:37
MemberEugen Podsypalnikov8-Apr-10 1:37 
GeneralRe: Widest Character and Height of the character Pin
Adam Roderick J8-Apr-10 1:41
MemberAdam Roderick J8-Apr-10 1:41 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 1:49
Membershiv@nand8-Apr-10 1:49 
GeneralRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 2:01
MemberEugen Podsypalnikov8-Apr-10 2:01 
It could be something like this Smile | :) :
/*virtual*/ void CYourView::OnInitialUpdate()
{
  CBaseOfYourView::OnInitialUpdate();

  /*CFont*/ m_cFont.CreatePointFont(120, _T("Arial")); // 12pts * 10
...
}

/*virtual*/ void CYourView::OnDraw(CDC* pDC)
{
  CSize cMaxCharSize(GetMaxCharSize(pDC, &m_cFont));
  CRect cMaxCharRect(CPoint(100, 100), cMaxCharSize);
  pDC->FillSolidRect(cMaxCharRect, RGB(0, 128, 200));
...
}

virtual void BeHappy() = 0;

GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 2:17
Membershiv@nand8-Apr-10 2:17 
AnswerRe: Widest Character and Height of the character Pin
Michel Godfroid8-Apr-10 6:47
MemberMichel Godfroid8-Apr-10 6:47 
JokeRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 9:07
MemberEugen Podsypalnikov8-Apr-10 9:07 
GeneralRe: Widest Character and Height of the character Pin
Michel Godfroid8-Apr-10 9:21
MemberMichel Godfroid8-Apr-10 9:21 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 17:46
Membershiv@nand8-Apr-10 17:46 
QuestionEncrypt Pin
MsmVc8-Apr-10 0:41
MemberMsmVc8-Apr-10 0:41 
AnswerRe: Encrypt Pin
_AnsHUMAN_ 8-Apr-10 0:44
Member_AnsHUMAN_ 8-Apr-10 0:44 
GeneralRe: Encrypt Pin
MsmVc8-Apr-10 0:47
MemberMsmVc8-Apr-10 0:47 
GeneralRe: Encrypt Pin
KarstenK8-Apr-10 3:25
mveKarstenK8-Apr-10 3:25 
QuestionHow to change focus from TreeView to ListView using tab in MFC? Pin
yvanc7-Apr-10 23:40
Memberyvanc7-Apr-10 23:40 
AnswerRe: How to change focus from TreeView to ListView using tab in MFC? Pin
Eugen Podsypalnikov8-Apr-10 0:57
MemberEugen Podsypalnikov8-Apr-10 0:57 
GeneralRe: How to change focus from TreeView to ListView using tab in MFC? Pin
yvanc8-Apr-10 3:31
Memberyvanc8-Apr-10 3:31 
GeneralRe: How to change focus from TreeView to ListView using tab in MFC? Pin
Eugen Podsypalnikov8-Apr-10 3:33
MemberEugen Podsypalnikov8-Apr-10 3:33 
GeneralRe: How to change focus from TreeView to ListView using tab in MFC? Pin
yvanc9-Apr-10 17:24
Memberyvanc9-Apr-10 17:24 
QuestionCan Signnal'ed Event Generate a User Message Pin
ForNow7-Apr-10 23:17
MemberForNow7-Apr-10 23:17 
AnswerRe: Can Signnal'ed Event Generate a User Message Pin
eusto8-Apr-10 0:07
Membereusto8-Apr-10 0:07 
GeneralRe: Can Signnal'ed Event Generate a User Message Pin
ForNow8-Apr-10 1:03
MemberForNow8-Apr-10 1:03 

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.