Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Time Format Pin
john563222-Sep-10 3:34
john563222-Sep-10 3:34 
AnswerRe: Time Format Pin
Aescleal22-Sep-10 3:38
Aescleal22-Sep-10 3:38 
GeneralRe: Time Format Pin
sharp prospector22-Sep-10 3:56
sharp prospector22-Sep-10 3:56 
GeneralRe: Time Format Pin
john563222-Sep-10 6:47
john563222-Sep-10 6:47 
GeneralRe: Time Format Pin
sharp prospector22-Sep-10 7:44
sharp prospector22-Sep-10 7:44 
QuestionUsing pdb file Pin
VVVimal21-Sep-10 23:47
VVVimal21-Sep-10 23:47 
AnswerRe: Using pdb file Pin
Niklas L22-Sep-10 1:59
Niklas L22-Sep-10 1:59 
QuestionHow to give mouse event on rectangle and resize Pin
raju_shiva21-Sep-10 18:55
raju_shiva21-Sep-10 18:55 
Hi all,
I am drawing one rectangle with some given values and degree.
Now i want to give the mouse event if i click the mouse on that rectangle,it should be activated so that i can drag it and resize.
The code i am using to draw rectangle is:

LPTSTR lpsz;

ColliAngle = "45";
int ang;

ang = _ttoi(ColliAngle);
float Angle = ( 3.142 * ang ) / 180; 
int x[4];
int y[4];
x[0] = -x1 * cos(Angle)  - y2 * sin(Angle);
y[0] =  x1 * sin(Angle)  - y2 * cos(Angle);
x[1] = -x1 * cos(Angle)  + y1 * sin(Angle);
y[1] =  x1 * sin(Angle)  + y1 * cos(Angle);
x[2] =  x2 * cos(Angle)  + y1 * sin(Angle);
y[2] = -x2 * sin(Angle)  + y1 * cos(Angle);
x[3] =  x2 * cos(Angle)  - y2 * sin(Angle);
y[3] = -x2 * sin(Angle)  - y2 * cos(Angle);
for (int i=0; i<4; i++)
{  
	x[i] += center.x;  
	y[i] += center.y;
}
MoveToEx(pCellInfo->hDC,x[3],y[3],NULL);
for (int i=0; i<4; i++)
{ 
	
	LineTo(pCellInfo->hDC, x[i],y[i]);
	
}


Please help me i dont know how to start and totally hanged.

Thanks
Raj
AnswerRe: How to give mouse event on rectangle and resize Pin
«_Superman_»21-Sep-10 19:14
professional«_Superman_»21-Sep-10 19:14 
AnswerRe: How to give mouse event on rectangle and resize Pin
mesajflaviu22-Sep-10 0:52
mesajflaviu22-Sep-10 0:52 
QuestionHow can i convert Bitmap from Resource to WMF format in mfc Pin
Kamis41021-Sep-10 9:36
Kamis41021-Sep-10 9:36 
AnswerRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
Code-o-mat21-Sep-10 10:46
Code-o-mat21-Sep-10 10:46 
GeneralRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
Kamis41021-Sep-10 10:54
Kamis41021-Sep-10 10:54 
GeneralRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
Code-o-mat21-Sep-10 11:06
Code-o-mat21-Sep-10 11:06 
GeneralRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
Kamis41021-Sep-10 11:44
Kamis41021-Sep-10 11:44 
GeneralRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
Kamis41021-Sep-10 11:53
Kamis41021-Sep-10 11:53 
GeneralRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
Code-o-mat21-Sep-10 22:15
Code-o-mat21-Sep-10 22:15 
AnswerRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
«_Superman_»21-Sep-10 18:32
professional«_Superman_»21-Sep-10 18:32 
GeneralRe: How can i convert Bitmap from Resource to WMF format in mfc Pin
Kamis41022-Sep-10 1:29
Kamis41022-Sep-10 1:29 
QuestionZ order Pin
AbhiHcl21-Sep-10 8:26
AbhiHcl21-Sep-10 8:26 
QuestionRe: Z order Pin
David Crow21-Sep-10 8:37
David Crow21-Sep-10 8:37 
QuestionRe: Z order Pin
rp_suman21-Sep-10 8:51
rp_suman21-Sep-10 8:51 
QuestionMFC application(VS2008) does not execute in another computer Pin
tdc_india21-Sep-10 1:49
tdc_india21-Sep-10 1:49 
AnswerRe: MFC application(VS2008) does not execute in another computer Pin
Cedric Moonen21-Sep-10 1:54
Cedric Moonen21-Sep-10 1:54 
GeneralRe: MFC application(VS2008) does not execute in another computer Pin
tdc_india21-Sep-10 2:02
tdc_india21-Sep-10 2:02 

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.