Re: is this group not work now days?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Schmidt

Thanks for respond.



Have pasted your code into a vb-project, ...
and after fixing all the posting-linebreaks I
saw only a commandbutton and some coordinates
in the top-left-corner (only partially visible because
of the CommandButton).

What do you want to demonstrate with this example?

When user Click (Mouse Down) and Move to another Point and (Mouse Up) it
store Coordinate.
and when you click on command button it create Memory DC (mDc) by given
size. the size is MouseDown Pt and MouseUp pt.


I have no clue - please describe in more detail what
you really want to achieve.

the propblem is here i want to create Multipal mDc in form as per given
size and position.

the size and position come with 2 point if you see in code you can see

Point1 is MouseDownPt
Point2 is MouseUpPt

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single,
Y As Single)
MouseDownPt.X = X ' <================
MouseDownPt.Y = Y' <================
ClickPt = MouseDownPt
Call DPtoLP(CurDC.mDC, ClickPt, 1&)
End Sub

Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y
As Single)
MouseUpPt.X = X
MouseUpPt.Y = Y
End Sub

i want Logical Coordinate Y is up so i use mapmode.
that all about it.

with out useing mapmode is work fine. but when you use mapmode. it goes
worng.





Olaf




.


Quantcast