Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ocx to exe Pin
toxcct12-Sep-06 22:42
toxcct12-Sep-06 22:42 
AnswerRe: Ocx to exe Pin
Hamid_RT12-Sep-06 22:05
Hamid_RT12-Sep-06 22:05 
GeneralRe: Ocx to exe Pin
Rinu_Raj12-Sep-06 22:08
Rinu_Raj12-Sep-06 22:08 
GeneralRe: Ocx to exe Pin
Hamid_RT12-Sep-06 22:18
Hamid_RT12-Sep-06 22:18 
Questionmigrate from vs2003 to vs 2005 mfc problem Pin
sv2george12-Sep-06 18:24
sv2george12-Sep-06 18:24 
GeneralRe: migrate from vs2003 to vs 2005 mfc problem Pin
prasad_som12-Sep-06 19:18
prasad_som12-Sep-06 19:18 
AnswerRe: migrate from vs2003 to vs 2005 mfc problem Pin
Sarath C12-Sep-06 21:20
Sarath C12-Sep-06 21:20 
Questionhow to stop this show Pin
gentleguy12-Sep-06 17:31
gentleguy12-Sep-06 17:31 
Hi:
the following is a main codes of shutter show an image, i would like to stop this show in any show process.so how to write such codes? urgent!!!!!!!!!!!
if(!pDoc ->statedoc&&state2==1)
{
BYTE* pBitmapData = CDibNew1->GetData();
LPBITMAPINFO pBitmapInfo = CDibNew1->GetInfo();
int bitmapHeight = CDibNew1->GetHeight();
int bitmapWidth = CDibNew1->GetWidth();
if (CDibNew1->GetRGB())

{
CPalette * hPalette=CreateBitmapPalette(CDibNew1);
CPalette * hOldPalette =
pDC->SelectPalette(hPalette, true);
pDC->RealizePalette();
for(int j=0;j<=bitmapHeight/10;j++)
for(int i=0;i<=10;i++)
{
::StretchDIBits(pDC->GetSafeHdc(),0, i*bitmapHeight/10, bitmapWidth,j,0, (9-i)*bitmapHeight/10, bitmapWidth,j,
pBitmapData, pBitmapInfo,DIB_RGB_COLORS, SRCCOPY);
Sleep(10);
}
pDC->SelectPalette(hOldPalette, true);
::DeleteObject(hPalette);
}
else
{
for(int j=0;j<=bitmapHeight/10;j++)
for(int i=0;i<=10;i++)
{
::StretchDIBits(pDC->GetSafeHdc(),0, i*bitmapHeight/10, bitmapWidth,j,0, (9-i)*bitmapHeight/10, bitmapWidth,j,pBitmapData, pBitmapInfo,DIB_RGB_COLORS, SRCCOPY);
Sleep(10);



Li Zhiyuan

13/09/2006

AnswerRe: how to stop this show Pin
Christian Graus12-Sep-06 18:04
protectorChristian Graus12-Sep-06 18:04 
QuestionHittest bug in CListCtrl Pin
NicolasCh12-Sep-06 16:08
NicolasCh12-Sep-06 16:08 
AnswerRe: Hittest bug in CListCtrl Pin
Naveen12-Sep-06 17:21
Naveen12-Sep-06 17:21 
GeneralRe: Hittest bug in CListCtrl Pin
NicolasCh12-Sep-06 22:19
NicolasCh12-Sep-06 22:19 
GeneralRe: Hittest bug in CListCtrl Pin
Naveen12-Sep-06 22:59
Naveen12-Sep-06 22:59 
QuestionCFileDialog customization Pin
HelloGuysHelpMe12-Sep-06 15:01
HelloGuysHelpMe12-Sep-06 15:01 
AnswerRe: CFileDialog customization Pin
Chris Losinger12-Sep-06 15:08
professionalChris Losinger12-Sep-06 15:08 
AnswerRe: CFileDialog customization Pin
Waldermort12-Sep-06 15:10
Waldermort12-Sep-06 15:10 
AnswerRe: CFileDialog customization Pin
Nibu babu thomas12-Sep-06 17:39
Nibu babu thomas12-Sep-06 17:39 
AnswerRe: CFileDialog customization Pin
Stephen Hewitt12-Sep-06 18:17
Stephen Hewitt12-Sep-06 18:17 
AnswerRe: CFileDialog customization Pin
Hamid_RT12-Sep-06 22:02
Hamid_RT12-Sep-06 22:02 
QuestionCMonthCalCtrl Pin
RedSwampFroggy12-Sep-06 14:25
RedSwampFroggy12-Sep-06 14:25 
AnswerRe: CMonthCalCtrl Pin
Waldermort12-Sep-06 15:17
Waldermort12-Sep-06 15:17 
GeneralRe: CMonthCalCtrl Pin
RedSwampFroggy12-Sep-06 16:26
RedSwampFroggy12-Sep-06 16:26 
AnswerRe: CMonthCalCtrl Pin
Hamid_RT13-Sep-06 8:34
Hamid_RT13-Sep-06 8:34 
GeneralRe: CMonthCalCtrl Pin
RedSwampFroggy16-Sep-06 18:35
RedSwampFroggy16-Sep-06 18:35 
QuestionMemory Allocation: new vs. malloc vs. ? Pin
nadiric12-Sep-06 13:33
nadiric12-Sep-06 13:33 

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.