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

C / C++ / MFC

 
Question^? Pin
SuperTank13-Dec-04 6:36
SuperTank13-Dec-04 6:36 
AnswerRe: ^? Pin
toxcct13-Dec-04 6:45
toxcct13-Dec-04 6:45 
GeneralRe: ^? Pin
SuperTank13-Dec-04 6:46
SuperTank13-Dec-04 6:46 
AnswerRe: ^? Pin
PJ Arends13-Dec-04 6:51
professionalPJ Arends13-Dec-04 6:51 
GeneralGetting text from an edit box Pin
aaadetos13-Dec-04 6:25
aaadetos13-Dec-04 6:25 
GeneralRe: Getting text from an edit box Pin
Antony M Kancidrowski13-Dec-04 6:49
Antony M Kancidrowski13-Dec-04 6:49 
GeneralRe: Getting text from an edit box Pin
aaadetos13-Dec-04 7:15
aaadetos13-Dec-04 7:15 
GeneralRe: Getting text from an edit box Pin
Antony M Kancidrowski13-Dec-04 9:42
Antony M Kancidrowski13-Dec-04 9:42 
The easiest way is to have a pointer to your dialog class within the class that you have the code.

Header file
CMyDialog* m_pMyDialog;

CPP file
HWND hWnd = m_pMyDialog->GetSafeHwnd();


etc...

IMPORTANT: Note that you need to set m_pMyDialog to point at your dialog class before using it.

Ant.

I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return!
- David Walliams (Little Britain)

GeneralRe: Getting text from an edit box Pin
toxcct13-Dec-04 7:42
toxcct13-Dec-04 7:42 
GeneralRe: Getting text from an edit box Pin
Antony M Kancidrowski13-Dec-04 9:47
Antony M Kancidrowski13-Dec-04 9:47 
GeneralRe: Getting text from an edit box Pin
aaadetos13-Dec-04 14:45
aaadetos13-Dec-04 14:45 
GeneralRe: Getting text from an edit box Pin
*Dreamz13-Dec-04 19:50
*Dreamz13-Dec-04 19:50 
GeneralRe: Getting text from an edit box Pin
aaadetos13-Dec-04 20:27
aaadetos13-Dec-04 20:27 
GeneralRe: Getting text from an edit box Pin
*Dreamz14-Dec-04 19:05
*Dreamz14-Dec-04 19:05 
GeneralRe: Getting text from an edit box Pin
aaadetos15-Dec-04 10:23
aaadetos15-Dec-04 10:23 
GeneralRe: Getting text from an edit box Pin
*Dreamz15-Dec-04 17:07
*Dreamz15-Dec-04 17:07 
GeneralRe: Getting text from an edit box Pin
Antony M Kancidrowski14-Dec-04 6:51
Antony M Kancidrowski14-Dec-04 6:51 
GeneralRe: Getting text from an edit box Pin
toxcct14-Dec-04 4:48
toxcct14-Dec-04 4:48 
QuestionHow to generate human friendly product keys using asymmetric crypto? Pin
Jim Howard13-Dec-04 6:06
Jim Howard13-Dec-04 6:06 
AnswerRe: How to generate human friendly product keys using asymmetric crypto? Pin
Chris Losinger13-Dec-04 7:49
professionalChris Losinger13-Dec-04 7:49 
GeneralRe: How to generate human friendly product keys using asymmetric crypto? Pin
Jim Howard13-Dec-04 7:59
Jim Howard13-Dec-04 7:59 
GeneralRe: How to generate human friendly product keys using asymmetric crypto? Pin
Chris Losinger13-Dec-04 8:30
professionalChris Losinger13-Dec-04 8:30 
Generalend of sizing or moving windows Dialog Pin
Thierry Lebrun13-Dec-04 5:26
Thierry Lebrun13-Dec-04 5:26 
GeneralRe: end of sizing or moving windows Dialog Pin
Phil J Pearson13-Dec-04 5:48
Phil J Pearson13-Dec-04 5:48 
GeneralRe: end of sizing or moving windows Dialog Pin
toxcct13-Dec-04 7:48
toxcct13-Dec-04 7:48 

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.