Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: mail attachment Pin
David Crow21-Jul-05 3:08
David Crow21-Jul-05 3:08 
GeneralPassing Data Around Custom Draw Message Handler Pin
yccheok20-Jul-05 22:55
yccheok20-Jul-05 22:55 
GeneralRe: Passing Data Around Custom Draw Message Handler Pin
Blake Miller21-Jul-05 4:53
Blake Miller21-Jul-05 4:53 
GeneralCompile program C++ by Visual C++.NET Pin
SAKURAVN20-Jul-05 22:50
SAKURAVN20-Jul-05 22:50 
GeneralCListCtrl Pin
ditty grail20-Jul-05 22:49
ditty grail20-Jul-05 22:49 
GeneralRe: CListCtrl Pin
Jetli Jerry20-Jul-05 23:37
Jetli Jerry20-Jul-05 23:37 
GeneralNeed Help to Resolve the Problem in Hit test Pin
SivaramanDhamodharan20-Jul-05 22:14
SivaramanDhamodharan20-Jul-05 22:14 
GeneralRe: Need Help to Resolve the Problem in Hit test Pin
Jose Lamas Rios21-Jul-05 3:12
Jose Lamas Rios21-Jul-05 3:12 
SivaramanDhamodharan wrote:
The following code does't work

"Doesn't work" is a little vague. What or where is failing exactly?

SivaramanDhamodharan wrote:
CRect rectDevice = m_rectEllipse;

Despite its name, rectDevice is in logical coordinates, right? Since you are converting the point to logical coordinates too, the test in rectDevice.PtInRect(point) should work as expected.

However, when calling InvalidateRect, you should pass a rect in device coordinates, so I'd try doing dc.LPtoDP(rectDevice) before the call to InvalidateRect.

On another point, you are calling CScrollView::OnLButtonDown with the modified value of point... It probably doesn't matter (I don't think the default implementation actually uses this value), but I'd fix that too.

--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: Need Help to Resolve the Problem in Hit test Pin
John R. Shaw21-Jul-05 6:32
John R. Shaw21-Jul-05 6:32 
GeneralRe: Need Help to Resolve the Problem in Hit test Pin
SivaramanDhamodharan21-Jul-05 20:57
SivaramanDhamodharan21-Jul-05 20:57 
Generaltrouble in inserting data to tree control Pin
firebolt7720-Jul-05 21:47
firebolt7720-Jul-05 21:47 
GeneralRe: trouble in inserting data to tree control Pin
Marc Soleda20-Jul-05 22:29
Marc Soleda20-Jul-05 22:29 
GeneralRe: trouble in inserting data to tree control Pin
David Crow21-Jul-05 3:07
David Crow21-Jul-05 3:07 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7721-Jul-05 15:32
firebolt7721-Jul-05 15:32 
GeneralRe: trouble in inserting data to tree control Pin
David Crow22-Jul-05 2:37
David Crow22-Jul-05 2:37 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7724-Jul-05 15:51
firebolt7724-Jul-05 15:51 
GeneralRe: trouble in inserting data to tree control Pin
David Crow25-Jul-05 2:44
David Crow25-Jul-05 2:44 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7725-Jul-05 15:24
firebolt7725-Jul-05 15:24 
GeneralRe: trouble in inserting data to tree control Pin
David Crow25-Jul-05 16:50
David Crow25-Jul-05 16:50 
GeneralRe: trouble in inserting data to tree control Pin
firebolt7725-Jul-05 17:05
firebolt7725-Jul-05 17:05 
GeneralRe: trouble in inserting data to tree control Pin
David Crow26-Jul-05 2:31
David Crow26-Jul-05 2:31 
GeneralUser Management Pin
sunit520-Jul-05 21:35
sunit520-Jul-05 21:35 
GeneralRe: User Management Pin
David Crow21-Jul-05 3:10
David Crow21-Jul-05 3:10 
GeneralRe: User Management Pin
sunit521-Jul-05 4:24
sunit521-Jul-05 4:24 
Generalmaterial1 Pin
poojapatel2220-Jul-05 21:32
poojapatel2220-Jul-05 21:32 

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.