Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to change the contrast of NB screen? Pin
ERICKYCheng14-Jul-10 1:50
ERICKYCheng14-Jul-10 1:50 
QuestionWhat field of PE Header tells that whether a valid PE file or not? Pin
glitteringsound14-Jul-10 1:35
glitteringsound14-Jul-10 1:35 
AnswerRe: What field of PE Header tells that whether a valid PE file or not? Pin
Code-o-mat14-Jul-10 2:05
Code-o-mat14-Jul-10 2:05 
AnswerRe: What field of PE Header tells that whether a valid PE file or not? Pin
Luc Pattyn14-Jul-10 2:23
sitebuilderLuc Pattyn14-Jul-10 2:23 
QuestionSetDlgItemText() Pin
raju_shiva14-Jul-10 1:16
raju_shiva14-Jul-10 1:16 
AnswerRe: SetDlgItemText() Pin
CPallini14-Jul-10 1:52
mveCPallini14-Jul-10 1:52 
AnswerRe: SetDlgItemText() Pin
Richard MacCutchan14-Jul-10 5:53
mveRichard MacCutchan14-Jul-10 5:53 
GeneralRe: SetDlgItemText() Pin
raju_shiva14-Jul-10 20:04
raju_shiva14-Jul-10 20:04 
Richard MacCutchan wrote:
Have you intitalised hwnd to the handle of the text box?


This is what i am doing.

I have created one dialog based application(say Test)
In that dialog,i have added one static text box(IDC_MYSTATIC).
From that dialog i am invoking another dialog(say Test1).
In that dialog,i have added a button as(Display message).

My plan is when i click that button.I want to display some msg on
(Test) dialog.

So what i am doing is:
IN Test.h.
extern HANDLE hwnd;


Then in second dialog.

In Test.cpp
HANDLE hwnd


Then on 
DisplayMesage()
{
 SetDlgItemText(hwnd,IDC_MYSTATIC,"ds"); //Here i am getting handle hwnd
}


I dont know whethier i am passing handle correctly or not.
I am getting hwnd as NULL

Thanks
Raj
GeneralRe: SetDlgItemText() Pin
CPallini14-Jul-10 20:37
mveCPallini14-Jul-10 20:37 
GeneralRe: SetDlgItemText() Pin
Richard MacCutchan14-Jul-10 21:46
mveRichard MacCutchan14-Jul-10 21:46 
QuestionMaking window half of the screen Pin
Sakhalean14-Jul-10 0:38
Sakhalean14-Jul-10 0:38 
AnswerRe: Making window half of the screen Pin
Niklas L14-Jul-10 0:51
Niklas L14-Jul-10 0:51 
GeneralRe: Making window half of the screen Pin
Sakhalean14-Jul-10 1:29
Sakhalean14-Jul-10 1:29 
AnswerRe: Making window half of the screen[Modified] Pin
Naveen14-Jul-10 0:54
Naveen14-Jul-10 0:54 
AnswerRe: Making window half of the screen Pin
Emilio Garavaglia14-Jul-10 2:08
Emilio Garavaglia14-Jul-10 2:08 
QuestionConverting an array of glyph indices to string Pin
Member 70956413-Jul-10 23:51
Member 70956413-Jul-10 23:51 
AnswerRe: Converting an array of glyph indices to string Pin
Richard MacCutchan14-Jul-10 1:07
mveRichard MacCutchan14-Jul-10 1:07 
QuestionHow to Move an MFC Button. [modified] Pin
lgmanuel13-Jul-10 22:58
lgmanuel13-Jul-10 22:58 
AnswerRe: How to Move an MFC Button. Pin
Niklas L13-Jul-10 23:04
Niklas L13-Jul-10 23:04 
GeneralRe: How to Move an MFC Button. Pin
lgmanuel13-Jul-10 23:09
lgmanuel13-Jul-10 23:09 
GeneralRe: How to Move an MFC Button. Pin
Niklas L13-Jul-10 23:13
Niklas L13-Jul-10 23:13 
GeneralRe: How to Move an MFC Button. Pin
Cedric Moonen13-Jul-10 23:13
Cedric Moonen13-Jul-10 23:13 
GeneralRe: How to Move an MFC Button. Pin
lgmanuel13-Jul-10 23:20
lgmanuel13-Jul-10 23:20 
GeneralRe: How to Move an MFC Button. Pin
Niklas L14-Jul-10 0:57
Niklas L14-Jul-10 0:57 
GeneralRe: How to Move an MFC Button. Pin
lgmanuel13-Jul-10 23:38
lgmanuel13-Jul-10 23:38 

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.