Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Well you have answered my question with "no", so it is no surprise that it does not work. The value of hwnd must be the handle to the window containing the item that you are trying to set the text of. Defining a variable in a header file has no effect on this, you need to get its value from within your Test1 dialog. I would guess (if you are using DoModal() to run Test1) that the correct value can be found from the GetParent()[^] function.

Perhaps a bit more time studying the basics of Windows Programming (Charles Petzold[^] has written some excellent guides) would be useful.
It's time for a new signature.

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 
GeneralRe: How to Move an MFC Button. Pin
ThatsAlok1-Jun-11 21:30
ThatsAlok1-Jun-11 21:30 
GeneralRe: How to Move an MFC Button. Pin
lgmanuel13-Jul-10 23:16
lgmanuel13-Jul-10 23:16 

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.