Click here to Skip to main content
15,909,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: New to DLL Pin
ShilpiP12-Feb-08 19:13
ShilpiP12-Feb-08 19:13 
GeneralRe: New to DLL Pin
Chandrasekharan P12-Feb-08 19:38
Chandrasekharan P12-Feb-08 19:38 
GeneralCreating stellar GUI Pin
act_x12-Feb-08 18:21
act_x12-Feb-08 18:21 
GeneralRe: Creating stellar GUI Pin
Iain Clarke, Warrior Programmer13-Feb-08 0:44
Iain Clarke, Warrior Programmer13-Feb-08 0:44 
QuestionHow Can repaint the views? [modified] Pin
Le@rner12-Feb-08 17:25
Le@rner12-Feb-08 17:25 
AnswerRe: How Can repaint the views? Pin
Swathee12-Feb-08 20:14
Swathee12-Feb-08 20:14 
GeneralRe: How Can repaint the views? Pin
Le@rner12-Feb-08 22:02
Le@rner12-Feb-08 22:02 
QuestionGET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
flip12-Feb-08 15:50
flip12-Feb-08 15:50 
Hi,

I found an interesting problem with a simple task.

I was adding a context menu to a tree view embedded on a dialog and the dialog is embedded on the main window.

I was using GET_X_LPARAM and GET_Y_LPARAM from windowsx.h

The value returned from GET_X_LPARAM is incorrect (negative) within the WM_NOTIFY section but the GET_Y_LPARAM is ok.

Of course the problem is easily solved by using GetCursorPos but has

(1) Anyone else seen this?
(2) Anyone else can replicate this?
(3) Can someone tell me why this is the case?

Upon looking at the WM_NOTIFY docs is it correct that LPARAM is getting overridden with the
NMHDR structure? So it actually is behaving correctly and it's just by change that the y member is correct and happens not to be overridden?


Regards,

Flip
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
Iain Clarke, Warrior Programmer13-Feb-08 4:15
Iain Clarke, Warrior Programmer13-Feb-08 4:15 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
flip13-Feb-08 12:28
flip13-Feb-08 12:28 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
Iain Clarke, Warrior Programmer14-Feb-08 0:19
Iain Clarke, Warrior Programmer14-Feb-08 0:19 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
flip14-Feb-08 16:18
flip14-Feb-08 16:18 
GeneralRe: GET_X_LPARAM gives incorrect results inside WM_NOTIFY Pin
Iain Clarke, Warrior Programmer14-Feb-08 22:22
Iain Clarke, Warrior Programmer14-Feb-08 22:22 
QuestionHow go get the coordinate of a control object Pin
Kennis12-Feb-08 15:46
Kennis12-Feb-08 15:46 
GeneralRe: How go get the coordinate of a control object Pin
Stephen Hewitt12-Feb-08 16:24
Stephen Hewitt12-Feb-08 16:24 
QuestionNeed to share data between C++ DLL and C# Pin
Adlai12-Feb-08 15:21
Adlai12-Feb-08 15:21 
Question2. Questions about PowerDown and Hibernation - need help Pin
tibiz12-Feb-08 13:14
tibiz12-Feb-08 13:14 
GeneralRe: 2. Questions about PowerDown and Hibernation - need help Pin
Stephen Hewitt12-Feb-08 15:04
Stephen Hewitt12-Feb-08 15:04 
GeneralRe: 2. Questions about PowerDown and Hibernation - need help Pin
tibiz13-Feb-08 0:11
tibiz13-Feb-08 0:11 
GeneralRe: 2. Questions about PowerDown and Hibernation - need help Pin
Stephen Hewitt13-Feb-08 1:06
Stephen Hewitt13-Feb-08 1:06 
GeneralRe: 2. Questions about PowerDown and Hibernation - need help Pin
tibiz13-Feb-08 5:51
tibiz13-Feb-08 5:51 
GeneralProblems distributing release version Pin
Tom Paronis12-Feb-08 12:54
Tom Paronis12-Feb-08 12:54 
GeneralRe: Problems distributing release version Pin
Cedric Moonen12-Feb-08 20:29
Cedric Moonen12-Feb-08 20:29 
GeneralRe: Problems distributing release version Pin
Tom Paronis13-Feb-08 9:49
Tom Paronis13-Feb-08 9:49 
Generalint * -vs- Object * Pin
Areal Person12-Feb-08 11:44
Areal Person12-Feb-08 11:44 

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.