Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Icon sizing problem Pin
RobJones23-Sep-03 7:10
RobJones23-Sep-03 7:10 
GeneralChanging the DC's offset Pin
Zizilamoroso23-Sep-03 0:28
Zizilamoroso23-Sep-03 0:28 
GeneralRe: Changing the DC's offset Pin
vcplusplus23-Sep-03 3:14
vcplusplus23-Sep-03 3:14 
GeneralRe: Changing the DC's offset Pin
Zizilamoroso23-Sep-03 3:29
Zizilamoroso23-Sep-03 3:29 
GeneralRe: Changing the DC's offset Pin
vcplusplus23-Sep-03 7:21
vcplusplus23-Sep-03 7:21 
GeneralRe: Changing the DC's offset Pin
Zizilamoroso24-Sep-03 0:08
Zizilamoroso24-Sep-03 0:08 
GeneralRe: Changing the DC's offset Pin
vcplusplus24-Sep-03 1:56
vcplusplus24-Sep-03 1:56 
GeneralRe: Changing the DC's offset Pin
Zizilamoroso24-Sep-03 5:25
Zizilamoroso24-Sep-03 5:25 
dwccgc wrote:
You can also find the samples on your MSDN Library Disks

I know, but I don't have the disks either...



But, meanwhile, I found a solution (workaround).

Instead of this:
CPaintDC dc(this)<br />

Use this:
PAINTSTRUCT ps;<br />
CDC* pDC=NULL;<br />
pDC=BeginPaint(&ps);<br />
<br />
...<br />
<br />
EndPaint(&ps);<br />

With the second code, the DC's offsets work the way they should. I don't know why they don't work with CPaintDC (nor CClientDC).


using: [VISUAL STUDIO 6.0 sp5] [WIN98/2]

GeneralSAS Window: Winlogon.exe Application error. Pin
rohit.dhamija22-Sep-03 23:42
rohit.dhamija22-Sep-03 23:42 
GeneralRe: SAS Window: Winlogon.exe Application error. Pin
Mike Dimmick23-Sep-03 0:39
Mike Dimmick23-Sep-03 0:39 
GeneralRe: SAS Window: Winlogon.exe Application error. Pin
rohit.dhamija23-Sep-03 0:58
rohit.dhamija23-Sep-03 0:58 
GeneralRe: SAS Window: Winlogon.exe Application error. Pin
Mike Dimmick23-Sep-03 7:24
Mike Dimmick23-Sep-03 7:24 
GeneralDon't paint the blue &quot;Hi-light&quot; rectangle Pin
Urban Olars22-Sep-03 23:07
Urban Olars22-Sep-03 23:07 
GeneralRe: Don't paint the blue &quot;Hi-light&quot; rectangle Pin
Mike Dimmick23-Sep-03 0:03
Mike Dimmick23-Sep-03 0:03 
GeneralRe: Don't paint the blue &quot;Hi-light&quot; rectangle Pin
vcplusplus23-Sep-03 1:59
vcplusplus23-Sep-03 1:59 
GeneralRe: Don't paint the blue &quot;Hi-light&quot; rectangle Pin
Urban Olars23-Sep-03 9:12
Urban Olars23-Sep-03 9:12 
GeneralError in MS Help WorkShop Pin
bhargav_ram22-Sep-03 22:34
bhargav_ram22-Sep-03 22:34 
GeneralRe: Error in MS Help WorkShop Pin
Roger Allen23-Sep-03 2:14
Roger Allen23-Sep-03 2:14 
GeneralSocket Program Pin
esepich22-Sep-03 20:47
esepich22-Sep-03 20:47 
GeneralRe: Socket Program Pin
Phil Speller22-Sep-03 22:22
Phil Speller22-Sep-03 22:22 
Generalprinting data in PDF format Pin
Bombi22-Sep-03 19:30
Bombi22-Sep-03 19:30 
QuestionHow to draw a line with mouse? Pin
whiteclouds22-Sep-03 18:01
whiteclouds22-Sep-03 18:01 
AnswerRe: How to draw a line with mouse? Pin
Blake Coverett22-Sep-03 18:11
Blake Coverett22-Sep-03 18:11 
GeneralRe: How to draw a line with mouse? Pin
whiteclouds22-Sep-03 18:28
whiteclouds22-Sep-03 18:28 
GeneralRe: How to draw a line with mouse? Pin
Blake Coverett22-Sep-03 21:34
Blake Coverett22-Sep-03 21:34 

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.