Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMessage Removed Pin
8-Apr-10 3:28
Eugen Podsypalnikov8-Apr-10 3:28 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 3:44
m_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
m_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
globus0008-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
Jonathan 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
shiv@nand8-Apr-10 1:13 
AnswerRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 1:37
Eugen Podsypalnikov8-Apr-10 1:37 
GeneralRe: Widest Character and Height of the character Pin
Adam Roderick J8-Apr-10 1:41
Adam Roderick J8-Apr-10 1:41 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 1:49
shiv@nand8-Apr-10 1:49 
GeneralRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 2:01
Eugen Podsypalnikov8-Apr-10 2:01 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 2:17
shiv@nand8-Apr-10 2:17 
AnswerRe: Widest Character and Height of the character Pin
Michel Godfroid8-Apr-10 6:47
Michel Godfroid8-Apr-10 6:47 
JokeRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 9:07
Eugen Podsypalnikov8-Apr-10 9:07 
GeneralRe: Widest Character and Height of the character Pin
Michel Godfroid8-Apr-10 9:21
Michel Godfroid8-Apr-10 9:21 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 17:46
shiv@nand8-Apr-10 17:46 
QuestionEncrypt Pin
MsmVc8-Apr-10 0:41
MsmVc8-Apr-10 0:41 
AnswerRe: Encrypt PinPopular
_AnsHUMAN_ 8-Apr-10 0:44
_AnsHUMAN_ 8-Apr-10 0:44 
GeneralRe: Encrypt Pin
MsmVc8-Apr-10 0:47
MsmVc8-Apr-10 0:47 
GeneralMessage Removed Pin
8-Apr-10 2:02
MsmVc8-Apr-10 2:02 
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
yvanc7-Apr-10 23:40 
AnswerRe: How to change focus from TreeView to ListView using tab in MFC? Pin
Eugen Podsypalnikov8-Apr-10 0:57
Eugen Podsypalnikov8-Apr-10 0: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.