Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan we use ConvertSidToStringSid in VC++6.0 and Windows2000? Pin
mctpursuer28-Feb-04 22:17
mctpursuer28-Feb-04 22:17 
AnswerRe: Can we use ConvertSidToStringSid in VC++6.0 and Windows2000? Pin
Gary R. Wheeler29-Feb-04 6:28
Gary R. Wheeler29-Feb-04 6:28 
AnswerRe: Can we use ConvertSidToStringSid in VC++6.0 and Windows2000? Pin
Michael Dunn29-Feb-04 6:37
sitebuilderMichael Dunn29-Feb-04 6:37 
GeneralKnights Tour Pin
Pharacyde28-Feb-04 21:10
Pharacyde28-Feb-04 21:10 
Generaltooltip for ListCtrl in MDI application Pin
Dudi Avramov28-Feb-04 21:03
Dudi Avramov28-Feb-04 21:03 
GeneralProblem to play and record wave files!!! Pin
Mehdi_Hosseinpour28-Feb-04 19:09
Mehdi_Hosseinpour28-Feb-04 19:09 
GeneralFirewalls & VC++ FTP application again Pin
rasha200328-Feb-04 18:17
rasha200328-Feb-04 18:17 
GeneralDifficuties on Mouse Coordinates Detection Pin
ansontong28-Feb-04 17:32
ansontong28-Feb-04 17:32 
Dear All,

I am trying to make a GUI inferface for a plant system monitoring (Final year project). So, I tried to put (Blt) a pic in a screen and detect the mouse event (X,Y coordinate and Left click button).

My method is to make define a X,Y coordinates of the pic in the file header. afterward, checking the mouse event in windows callback function. My problem is that the vaules of clciking mouse coordinates and pic coordinates are not inconsistance. Is it possible ?

My script is
//***** Define the value of the pic
//-----------button1-----------------------
int button1StartX=250;
int button1EndX=250 + g_menuwidth;
int button1StartY=150;
int button1EndY=150 + g_menuHeight;
ScSurObj g_button1;

//********** Displayframe Function *********
g_pDisplay->Blt( button1StartX, button1StartY, g_button1, NULL);

// ******** Win Main Call back function*********
// To Operate Mouse Detection
case WM_LBUTTONDOWN: /* process left button */
MouseMovementDetection(hWnd,msg,wParam,lParam);
break;

// ******** MouseMovementDetection function*********
if ( XMouse > button1StartX && XMouse < button1EndX )
if ( YMouse > button1StartY && YMouse < button1EndY )
g_FrameDisplay = 2;






Regards,
Anson Tong
GeneralRe: Difficuties on Mouse Coordinates Detection Pin
akira3229-Feb-04 1:23
akira3229-Feb-04 1:23 
GeneralBeginner: Having trouble with LoadResource and Windows Pin
mjeb111128-Feb-04 13:49
mjeb111128-Feb-04 13:49 
GeneralRe: Beginner: Having trouble with LoadResource and Windows Pin
Gerald Schwab28-Feb-04 14:49
Gerald Schwab28-Feb-04 14:49 
GeneralRe: Beginner: Having trouble with LoadResource and Windows Pin
mjeb111128-Feb-04 16:02
mjeb111128-Feb-04 16:02 
GeneralRe: Beginner: Having trouble with LoadResource and Windows Pin
Gary R. Wheeler29-Feb-04 5:58
Gary R. Wheeler29-Feb-04 5:58 
GeneralRe: Beginner: Having trouble with LoadResource and Windows Pin
mjeb111129-Feb-04 12:12
mjeb111129-Feb-04 12:12 
GeneralDialogBar and Tab Controls Pin
krugger28-Feb-04 11:37
krugger28-Feb-04 11:37 
Generalregsvr32 and XP Pin
BaldwinMartin28-Feb-04 9:03
BaldwinMartin28-Feb-04 9:03 
GeneralDLL bitmap Pin
BaldwinMartin28-Feb-04 7:58
BaldwinMartin28-Feb-04 7:58 
GeneralRe: DLL bitmap Pin
Gary R. Wheeler29-Feb-04 6:22
Gary R. Wheeler29-Feb-04 6:22 
GeneralCaps Lock Pin
Archer28228-Feb-04 7:01
Archer28228-Feb-04 7:01 
GeneralRe: Caps Lock Pin
PJ Arends28-Feb-04 8:27
professionalPJ Arends28-Feb-04 8:27 
GeneralRe: Caps Lock Pin
Archer28228-Feb-04 8:32
Archer28228-Feb-04 8:32 
GeneralRe: Caps Lock Pin
PJ Arends28-Feb-04 9:23
professionalPJ Arends28-Feb-04 9:23 
Generalflickering of controls Pin
JWood28-Feb-04 6:00
JWood28-Feb-04 6:00 
GeneralRe: flickering of controls Pin
alex.barylski28-Feb-04 10:36
alex.barylski28-Feb-04 10:36 
GeneralToolbar and transparent icons problem Pin
NodeX28-Feb-04 4:13
NodeX28-Feb-04 4:13 

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.