Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CInternetSession Pin
Michael A. Barnhart28-Jul-01 17:51
Michael A. Barnhart28-Jul-01 17:51 
GeneralFinding records ... Pin
Hadi Rezaee27-Jul-01 23:41
Hadi Rezaee27-Jul-01 23:41 
GeneralRe: Finding records ... Pin
skfnmuislædmufaæoi29-Jul-01 2:34
skfnmuislædmufaæoi29-Jul-01 2:34 
GeneralRe: Finding records ... Pin
Hadi Rezaee29-Jul-01 17:46
Hadi Rezaee29-Jul-01 17:46 
GeneralToolTip Pin
27-Jul-01 22:42
suss27-Jul-01 22:42 
GeneralRe: ToolTip Pin
Florian Heidenreich28-Jul-01 5:20
Florian Heidenreich28-Jul-01 5:20 
GeneralRe: ToolTip Pin
28-Jul-01 5:58
suss28-Jul-01 5:58 
GeneralProblem with StretchBlt() function Pin
julia27-Jul-01 17:31
julia27-Jul-01 17:31 
the problem i came across: i want to be able to zoom in or zoom out a bitmap
(original size is 800*600)on a dialog,every time when the user clicks the zoom button,
i stretch the bitmap by ratio of 2,4,8,16,32 of the original size.When i set my
system's color mode to 24bit true color and the ratio reach to 8,it doesn't work,
whereas under the mode of 16bit enhance color or 32bit true color,it work!
BUT WHY?Had i forgotten anything?
the code is:
CMyDialog::OnPaint()
{
CPaintDC dc(this);

HDC hdcMem1=CreateCompatibleDC(dc.GetSafeHdc());

SelectObject(hdcMem1,m_hBitmap);


int nRaster=dc.GetDeviceCaps(RASTERCAPS);
if((nRaster & RC_STRETCHBLT) !=RC_STRETCHBLT){
dc.TextOut(100,100,"Not surport StretchBlt()");
return;
}

dc.SetWindowExt(m_szImage.cx,m_szImage.cy);//m_szImage if the size of the bitmap;
dc.SetViewportExt(m_szImage.cx,m_szImage.cy);


dc.SetStretchBltMode(COLORONCOLOR);

BOOL ret=StretchBlt(dc.GetSafeHdc(),0,0,m_szImage.cx,m_szImage.cy,hdcMem1,0,O,800,600,SRCCOPY);

DeleteDC(hdcMem1);

}

Thank in advance;
Truely yours julia.Confused | :confused:
GeneralRe: Problem with StretchBlt() function Pin
Christian Graus27-Jul-01 18:04
protectorChristian Graus27-Jul-01 18:04 
GeneralPrint rectangle with bitmap brush Pin
Eugene Pustovoyt27-Jul-01 17:25
Eugene Pustovoyt27-Jul-01 17:25 
GeneralRe: Print rectangle with bitmap brush Pin
Christian Graus27-Jul-01 18:06
protectorChristian Graus27-Jul-01 18:06 
QuestionHow to disable right-click popup menu system wide Pin
JavaTony27-Jul-01 16:01
JavaTony27-Jul-01 16:01 
GeneralHelp with creating Always On Top hidden window Pin
JavaTony27-Jul-01 15:19
JavaTony27-Jul-01 15:19 
GeneralRe: Help with creating Always On Top hidden window Pin
Vitaliy Hubanov30-Jul-01 22:17
Vitaliy Hubanov30-Jul-01 22:17 
GeneralNon-resizable window. Pin
John Uhlenbrock27-Jul-01 11:35
John Uhlenbrock27-Jul-01 11:35 
GeneralRe: Non-resizable window. Pin
Nathan Hoffman27-Jul-01 11:59
Nathan Hoffman27-Jul-01 11:59 
GeneralRe: Non-resizable window. Pin
Ulf Öhlén27-Jul-01 19:29
Ulf Öhlén27-Jul-01 19:29 
GeneralRe: Non-resizable window. Pin
Rick York27-Jul-01 21:51
mveRick York27-Jul-01 21:51 
GeneralRe: Non-resizable window. Pin
Ulf Öhlén28-Jul-01 8:45
Ulf Öhlén28-Jul-01 8:45 
GeneralCommunication among Components Pin
Nathan Hoffman27-Jul-01 11:00
Nathan Hoffman27-Jul-01 11:00 
GeneralRe: Communication among Components Pin
Frank Deo27-Jul-01 11:32
Frank Deo27-Jul-01 11:32 
GeneralRe: Communication among Components Pin
Cathy27-Jul-01 11:33
Cathy27-Jul-01 11:33 
GeneralCFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Cathy27-Jul-01 10:47
Cathy27-Jul-01 10:47 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Neville Franks27-Jul-01 12:46
Neville Franks27-Jul-01 12:46 
GeneralRe: CFile::Open(...) fails when opening file on MSDOS computer from Win2000 computer Pin
Cathy27-Jul-01 14:06
Cathy27-Jul-01 14:06 

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.