Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get string without CSDIFormView ... Pin
Hadi Rezaee19-Apr-01 0:12
Hadi Rezaee19-Apr-01 0:12 
QuestionHow to send a 'refresh' message to MS-Dev from an another MFC application Pin
EiSl18-Apr-01 3:14
EiSl18-Apr-01 3:14 
GeneralCListCtrl Sorting Pin
Mustafa Demirhan18-Apr-01 3:07
Mustafa Demirhan18-Apr-01 3:07 
GeneralRe: CListCtrl Sorting Pin
18-Apr-01 19:14
suss18-Apr-01 19:14 
GeneralRe: CListCtrl Sorting Pin
Ammar18-Apr-01 19:33
Ammar18-Apr-01 19:33 
GeneralRe: CListCtrl Sorting Pin
19-Apr-01 5:11
suss19-Apr-01 5:11 
GeneralrtWhy the bitmap just don't show?! Pin
hike18-Apr-01 1:25
hike18-Apr-01 1:25 
GeneralRe: rtWhy the bitmap just don't show?! Pin
Istvan Eperjesy23-Apr-01 1:16
Istvan Eperjesy23-Apr-01 1:16 
Hi,

I didn't have much time to check your code completely, but I think the source line:

if(!(hDC = ::GetDC(0))) throw 0; // create the 16-bit DIBSECTION

is incorrect.

You re-initialize the local parameter hDC, which was sent by the call to your DrawDIBSection(..) function in the OnDraw method. It will be set to a DC for the desktop, by ::GetDC(0).
This hDC is used for the BitBlt(..) command later.

Not a sollution, but just a hint...Smile | :)


Istvan Eperjesy
GeneralProblem, help !! Pin
VitSoft18-Apr-01 0:50
VitSoft18-Apr-01 0:50 
GeneralRe: Problem, help !! Pin
NormDroid18-Apr-01 0:58
professionalNormDroid18-Apr-01 0:58 
GeneralRe: Problem, help !! Pin
VitSoft18-Apr-01 1:12
VitSoft18-Apr-01 1:12 
GeneralRe: Problem, help !! Pin
Michael Dunn18-Apr-01 8:05
sitebuilderMichael Dunn18-Apr-01 8:05 
GeneralChanging security attributes in Access Pin
Ammar17-Apr-01 23:08
Ammar17-Apr-01 23:08 
GeneralDay Light Savings Time ( is it on) Pin
Colin J Davies17-Apr-01 19:47
Colin J Davies17-Apr-01 19:47 
GeneralRe: Day Light Savings Time ( is it on) Pin
Michael Dunn17-Apr-01 20:03
sitebuilderMichael Dunn17-Apr-01 20:03 
GeneralRe: Day Light Savings Time ( is it on) Pin
Colin J Davies17-Apr-01 21:00
Colin J Davies17-Apr-01 21:00 
GeneralFast Algorithm needed for Co-odinates along Ellipse Pin
Wolfram Steinke17-Apr-01 19:39
Wolfram Steinke17-Apr-01 19:39 
GeneralRe: Fast Algorithm needed for Co-odinates along Ellipse Pin
Christian Graus17-Apr-01 21:56
protectorChristian Graus17-Apr-01 21:56 
Generallinker eror Pin
17-Apr-01 18:42
suss17-Apr-01 18:42 
GeneralIMPLIB equivalent for VC++ Pin
Yong Haur TAY17-Apr-01 18:04
Yong Haur TAY17-Apr-01 18:04 
GeneralVB Add-In Programming Pin
Jamie Nordmeyer17-Apr-01 12:57
Jamie Nordmeyer17-Apr-01 12:57 
GeneralVB Add-In Programming Pin
Jamie Nordmeyer17-Apr-01 12:56
Jamie Nordmeyer17-Apr-01 12:56 
GeneralWin32 executable location Pin
Michael Anderson17-Apr-01 11:08
Michael Anderson17-Apr-01 11:08 
GeneralRe: Win32 executable location Pin
Chris Losinger17-Apr-01 11:13
professionalChris Losinger17-Apr-01 11:13 
GeneralDirectshow problem with getting the media file length Pin
Bart-Man17-Apr-01 11:07
Bart-Man17-Apr-01 11:07 

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.