Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateTimerQueue Pin
Chandrasekharan P15-Dec-08 20:52
Chandrasekharan P15-Dec-08 20:52 
QuestionOpenProcess Access Denied Pin
ForNow15-Dec-08 17:04
ForNow15-Dec-08 17:04 
AnswerRe: OpenProcess Access Denied Pin
Jijo.Raj15-Dec-08 19:07
Jijo.Raj15-Dec-08 19:07 
AnswerRe: OpenProcess Access Denied Pin
Sarath C15-Dec-08 21:12
Sarath C15-Dec-08 21:12 
GeneralRe: OpenProcess Access Denied Pin
ForNow15-Dec-08 23:36
ForNow15-Dec-08 23:36 
GeneralRe: OpenProcess Access Denied Pin
Jijo.Raj16-Dec-08 20:56
Jijo.Raj16-Dec-08 20:56 
GeneralRe: OpenProcess Access Denied Pin
ForNow16-Dec-08 23:40
ForNow16-Dec-08 23:40 
QuestionVC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
pratap198015-Dec-08 13:10
pratap198015-Dec-08 13:10 
Hi All,

When i am porting my application VC++ 6.0 to VC++ 9.0 in the following piece of code i got the error

error C2039: 'm_hWndLastControl' : is not a member of 'CDataExchange'
else if (pDX->m_hWndLastControl != NULL && pDX->m_bEditLastControl)
{
::SendMessage(pDX->m_hWndLastControl, EM_LIMITTEXT, maxChars, 0);
}

When i had a look at the CDataExchange class the member hWndLastControl is emoved and a new member called m_idlastcontrol is introduced.

i can use the pDX->m_hWndLastControl in the comparison, but SendMessage nead a HWND. How can i get the HWND from m_idLastControl?

Is there any API to get the handle of a control from its ID?

Thank you all for the support.
AnswerRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Stuart Dootson15-Dec-08 13:41
professionalStuart Dootson15-Dec-08 13:41 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
pratap198015-Dec-08 13:43
pratap198015-Dec-08 13:43 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Stuart Dootson15-Dec-08 13:45
professionalStuart Dootson15-Dec-08 13:45 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
pratap198015-Dec-08 13:55
pratap198015-Dec-08 13:55 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Stuart Dootson15-Dec-08 20:19
professionalStuart Dootson15-Dec-08 20:19 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Garth J Lancaster15-Dec-08 14:42
professionalGarth J Lancaster15-Dec-08 14:42 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Sarath C15-Dec-08 16:38
Sarath C15-Dec-08 16:38 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Garth J Lancaster15-Dec-08 16:41
professionalGarth J Lancaster15-Dec-08 16:41 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Sarath C15-Dec-08 16:49
Sarath C15-Dec-08 16:49 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Stuart Dootson15-Dec-08 20:18
professionalStuart Dootson15-Dec-08 20:18 
GeneralRe: VC++ 6.0 tp 9.0 porting issue with CDataExchange Pin
Garth J Lancaster15-Dec-08 22:46
professionalGarth J Lancaster15-Dec-08 22:46 
Questionpls help me out.. Pin
ramina sen15-Dec-08 7:40
ramina sen15-Dec-08 7:40 
QuestionRe: pls help me out.. Pin
Mark Salsbery15-Dec-08 10:41
Mark Salsbery15-Dec-08 10:41 
AnswerRe: pls help me out.. Pin
CPallini15-Dec-08 11:13
mveCPallini15-Dec-08 11:13 
JokeRe: pls help me out.. Pin
Mark Salsbery15-Dec-08 11:42
Mark Salsbery15-Dec-08 11:42 
AnswerRe: pls help me out.. Pin
Member 419459315-Dec-08 11:55
Member 419459315-Dec-08 11:55 
QuestionRetriving current network capacity? Pin
bosfan15-Dec-08 4:21
bosfan15-Dec-08 4:21 

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.