Click here to Skip to main content
14,978,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 3:03
Memberm_code8-Apr-10 3:03 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 3:44
Memberm_code8-Apr-10 3:44 
AnswerRe: How could I run one of my class member Functions in a new thread: Pin
KarstenK8-Apr-10 3:41
mveKarstenK8-Apr-10 3:41 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 3:50
Memberm_code8-Apr-10 3:50 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
KarstenK8-Apr-10 4:09
mveKarstenK8-Apr-10 4:09 
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 
Should you be setting bmi.bmiHeader.biSizeImage before calling SetDIBits? I only say this because I found the following I'd used which uses GetDIBits to calculate it's value:
...

// Calculate the biSizeImage parameter using GetDIBits or manually if this fails
int ScanLines = GetDIBits(hMemDC,hBmp,0,B1Win.ylen,NULL,lpbmInfo,DIB_RGB_COLORS);
if(lpbmInfo->bmiHeader.biSizeImage == 0)
    lpbmInfo->bmiHeader.biSizeImage = ((((lpbmInfo->bmiHeader.biWidth * lpbmInfo->bmiHeader.biBitCount) + 31) & ~31) >> 3) * lpbmInfo->bmiHeader.biHeight;



// Copy bits from RGB888 to 24 bit DIB and inverting bitmap 
ScanLines = (int)(InControl.VideoRoi.ylen);	// SetDIBits inverts if height is -ve

// biHeight originally set -ve here
ScanLines = SetDIBits(hMemDC,hBmp,0,ScanLines,BDBoard.pcnvBuffer,lpbmInfo,DIB_RGB_COLORS);

...

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 
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 PinPopular
_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 

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.