Click here to Skip to main content
14,984,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Who have open source of Netcafe manager?? Pin
Hamid_RT21-Sep-07 19:33
MemberHamid_RT21-Sep-07 19:33 
QuestionCDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Vaclav_21-Sep-07 5:01
MemberVaclav_21-Sep-07 5:01 
AnswerRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Chris Losinger21-Sep-07 5:27
professionalChris Losinger21-Sep-07 5:27 
GeneralRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Vaclav_21-Sep-07 6:04
MemberVaclav_21-Sep-07 6:04 
GeneralRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Chris Losinger21-Sep-07 6:12
professionalChris Losinger21-Sep-07 6:12 
GeneralRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Vaclav_21-Sep-07 7:18
MemberVaclav_21-Sep-07 7:18 
QuestionRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
David Crow21-Sep-07 6:10
MemberDavid Crow21-Sep-07 6:10 
AnswerRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Vaclav_21-Sep-07 6:48
MemberVaclav_21-Sep-07 6:48 
I tried to build a different constructor then I get this error.


class CCC_Dialog_EditFile : public CDialog
{
// Construction
public:
CCC_Dialog_EditFile(CCC_Form_Edit* pParent = NULL);
CCC_Dialog_EditFile(CWnd* pParent = NULL); // standard constructor


Anyway,
I think I found the solution. I "pull" the calling class window from the pParent handle like this

CCC_Form_Edit * pWnd = (CCC_Form_Edit*)FromHandle(pParent->m_hWnd);



Does it makes sense? It still ties the dialog to one class but it will work for now.

I am still interested in proper solution, this is a hack!

Thanks for all your input.

Cheers
Vaclav

GeneralRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
David Crow21-Sep-07 7:20
MemberDavid Crow21-Sep-07 7:20 
AnswerRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Gary R. Wheeler22-Sep-07 3:05
MemberGary R. Wheeler22-Sep-07 3:05 
GeneralRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Vaclav_22-Sep-07 5:30
MemberVaclav_22-Sep-07 5:30 
GeneralRe: CDialog very basic question - how to pass and use CWnd parameter pParent? Pin
Gary R. Wheeler23-Sep-07 2:21
MemberGary R. Wheeler23-Sep-07 2:21 
QuestionMFC Grid Control - how to add an icon Pin
gomez_a21-Sep-07 4:54
Membergomez_a21-Sep-07 4:54 
QuestionPlacing pictures on a dialog box (VC++ 6.0) Pin
mr_m_imran21-Sep-07 4:38
Membermr_m_imran21-Sep-07 4:38 
AnswerRe: Placing pictures on a dialog box (VC++ 6.0) Pin
David Crow21-Sep-07 4:53
MemberDavid Crow21-Sep-07 4:53 
GeneralRe: Placing pictures on a dialog box (VC++ 6.0) Pin
mr_m_imran21-Sep-07 7:19
Membermr_m_imran21-Sep-07 7:19 
AnswerRe: Placing pictures on a dialog box (VC++ 6.0) Pin
Hamid_RT21-Sep-07 19:34
MemberHamid_RT21-Sep-07 19:34 
GeneralANSI -> UTF8 Pin
Jörgen Sigvardsson21-Sep-07 4:24
MemberJörgen Sigvardsson21-Sep-07 4:24 
QuestionRe: ANSI -> UTF8 Pin
David Crow21-Sep-07 4:33
MemberDavid Crow21-Sep-07 4:33 
AnswerRe: ANSI -> UTF8 Pin
Jörgen Sigvardsson21-Sep-07 4:42
MemberJörgen Sigvardsson21-Sep-07 4:42 
GeneralRe: ANSI -> UTF8 Pin
David Crow21-Sep-07 4:51
MemberDavid Crow21-Sep-07 4:51 
GeneralRe: ANSI -> UTF8 Pin
Nemanja Trifunovic21-Sep-07 4:54
MemberNemanja Trifunovic21-Sep-07 4:54 
GeneralRe: ANSI -> UTF8 Pin
Jörgen Sigvardsson21-Sep-07 4:59
MemberJörgen Sigvardsson21-Sep-07 4:59 
GeneralRe: ANSI -> UTF8 Pin
Gary R. Wheeler22-Sep-07 3:07
MemberGary R. Wheeler22-Sep-07 3:07 
QuestionProblem in HotKey Pin
GauranG Shah21-Sep-07 4:13
MemberGauranG Shah21-Sep-07 4:13 

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.