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

C / C++ / MFC

 
GeneralRe: Problem disabling Controls in Win 2k Pin
Nish Nishant9-Jan-02 6:49
sitebuilderNish Nishant9-Jan-02 6:49 
GeneralRe: Problem disabling Controls in Win 2k Pin
Semlo10-Jan-02 2:06
Semlo10-Jan-02 2:06 
GeneralProblem with registring server Pin
9-Jan-02 5:49
suss9-Jan-02 5:49 
GeneralRe: Problem with registring server Pin
James R. Twine9-Jan-02 6:05
James R. Twine9-Jan-02 6:05 
GeneralRe: Problem with registring server Pin
9-Jan-02 22:28
suss9-Jan-02 22:28 
GeneralRe: Problem with registring server Pin
James R. Twine10-Jan-02 5:06
James R. Twine10-Jan-02 5:06 
GeneralWith a little help from my friends Pin
Joaquín M López Muñoz9-Jan-02 5:17
Joaquín M López Muñoz9-Jan-02 5:17 
GeneralStretchBlt question Pin
jafrazee9-Jan-02 5:05
jafrazee9-Jan-02 5:05 
with the below code all i see is a scrambled image. i used the same code in watcom c++ and it seemed to work ok. I am now using msvc++.
i am not sure if i am doing something wrong or if i have to change the functions to microsoft standards.

HDC ScanImageDC, hdc, Oldhdc;
HBITMAP ImageBitmap, OldImageBitmap;
HRGN hrgn;
hdc = GetDC(NULL);
Oldhdc = hdc;
hrgn = CreateRectRgn(0, 0, 800, 600);
SelectObject(hdc, hrgn);
FillRgn(hdc, hrgn, (HBRUSH) CreateSolidBrush(RGB(255, 255, 255)));
DeleteObject(hrgn);

ImageBitmap = CreateBitmap(imgwth,imghth, 1, 1, Image);

ScanImageDC = CreateCompatibleDC(hdc);
SetBkMode(ScanImageDC, OPAQUE);

OldImageBitmap = SelectBitmap(ScanImageDC, ImageBitmap);

int xxx= SetStretchBltMode(hdc,STRETCH_HALFTONE);
StretchBlt(hdc, 0, 0, 800, 600, ScanImageDC, 0, 0,imgwth,imghth, SRCCOPY);
SelectBitmap(ScanImageDC, OldImageBitmap);
DeleteDC(ScanImageDC);
DeleteObject(ImageBitmap);
GeneralRe: StretchBlt question Pin
Ernest Laurentin9-Jan-02 5:28
Ernest Laurentin9-Jan-02 5:28 
GeneralRe: StretchBlt question Pin
jafrazee9-Jan-02 5:37
jafrazee9-Jan-02 5:37 
GeneralRe: StretchBlt question Pin
Ernest Laurentin9-Jan-02 6:47
Ernest Laurentin9-Jan-02 6:47 
GeneralRe: StretchBlt question Pin
Jon Hulatt9-Jan-02 6:30
Jon Hulatt9-Jan-02 6:30 
GeneralRe: StretchBlt question Pin
Joel Lucsy9-Jan-02 7:52
Joel Lucsy9-Jan-02 7:52 
QuestionDLLs - catching messages? Pin
User 66589-Jan-02 5:01
User 66589-Jan-02 5:01 
AnswerRe: DLLs - catching messages? Pin
Rickard Andersson209-Jan-02 6:35
Rickard Andersson209-Jan-02 6:35 
AnswerRe: DLLs - catching messages? Pin
Joaquín M López Muñoz9-Jan-02 7:02
Joaquín M López Muñoz9-Jan-02 7:02 
GeneralRe: DLLs - catching messages? Pin
User 66589-Jan-02 9:54
User 66589-Jan-02 9:54 
Generalproblem opening files in application Pin
Stew9-Jan-02 4:42
Stew9-Jan-02 4:42 
GeneralRe: problem opening files in application Pin
Michael P Butler9-Jan-02 4:49
Michael P Butler9-Jan-02 4:49 
GeneralRe: problem opening files in application Pin
Stew9-Jan-02 5:14
Stew9-Jan-02 5:14 
GeneralRe: problem opening files in application Pin
James R. Twine9-Jan-02 5:35
James R. Twine9-Jan-02 5:35 
QuestionMenu not enabled? Pin
Fredrik Skog9-Jan-02 3:42
Fredrik Skog9-Jan-02 3:42 
AnswerRe: Menu not enabled? Pin
Nish Nishant9-Jan-02 3:57
sitebuilderNish Nishant9-Jan-02 3:57 
GeneralRe: Menu not enabled? Pin
Fredrik Skog9-Jan-02 22:50
Fredrik Skog9-Jan-02 22:50 
GeneralRe: Menu not enabled? Pin
James R. Twine10-Jan-02 10:19
James R. Twine10-Jan-02 10:19 

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.