Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get the deleted character Pin
Veera Raghavendra2-Jun-05 3:12
Veera Raghavendra2-Jun-05 3:12 
AnswerRe: How to get the deleted character Pin
Cedric Moonen2-Jun-05 3:17
Cedric Moonen2-Jun-05 3:17 
GeneralRe: How to get the deleted character Pin
Veera Raghavendra2-Jun-05 3:22
Veera Raghavendra2-Jun-05 3:22 
GeneralRe: How to get the deleted character Pin
Cedric Moonen2-Jun-05 4:13
Cedric Moonen2-Jun-05 4:13 
GeneralRe: How to get the deleted character Pin
Veera Raghavendra2-Jun-05 18:36
Veera Raghavendra2-Jun-05 18:36 
GeneralRe: How to get the deleted character Pin
S. Senthil Kumar2-Jun-05 6:01
S. Senthil Kumar2-Jun-05 6:01 
GeneralOwner / Custom Drawing a Header Control Pin
Steve Thresher2-Jun-05 3:02
Steve Thresher2-Jun-05 3:02 
Generalshowwindow Pin
Stirfie2-Jun-05 2:45
Stirfie2-Jun-05 2:45 
This may be a simple thing but I,m stuck. In the last function of this class I am trying to show m_image_new. This is not for a serious project I am just learning, but the project will not compile. The class is:-

// dlg_new.cpp : implementation file
//

#include "stdafx.h"
#include "EditTest.h"
#include "dlg_new.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// dlg_new dialog


dlg_new::dlg_new(CWnd* pParent /*=NULL*/)
: CDialog(dlg_new::IDD, pParent)
{
//{{AFX_DATA_INIT(dlg_new)
m_image_new = _T("");
//}}AFX_DATA_INIT
}


void dlg_new::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(dlg_new)
DDX_Control(pDX, IDC_BUTTON_IMAGE, m_image_button);
DDX_Text(pDX, IDC_STATIC_IMAGE, m_image_new);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(dlg_new, CDialog)
//{{AFX_MSG_MAP(dlg_new)
ON_COMMAND(ID_VIEW_NEW, OnViewNew)
ON_BN_CLICKED(IDC_BUTTON_IMAGE, OnButtonImage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// dlg_new message handlers

void dlg_new::OnViewNew()
{
// TODO: Add your command handler code here

}

void dlg_new::OnButtonImage()
{
//using ::CWnd;
m_image_new.CWnd::ShowWindow( SW_SHOW );
// TODO: Add your control notification handler code here

}
The error I get is that CWnd is not a member of CString.


Please help
regards
Paul
GeneralRe: showwindow Pin
P-Rex2-Jun-05 2:48
P-Rex2-Jun-05 2:48 
GeneralRe: showwindow Pin
Stirfie2-Jun-05 4:20
Stirfie2-Jun-05 4:20 
GeneralRe: showwindow Pin
ddmcr2-Jun-05 3:00
ddmcr2-Jun-05 3:00 
Questionhow to calculate the Date? thanks Pin
qqworm2-Jun-05 2:37
qqworm2-Jun-05 2:37 
AnswerRe: how to calculate the Date? thanks Pin
Cedric Moonen2-Jun-05 2:41
Cedric Moonen2-Jun-05 2:41 
GeneralRe: how to calculate the Date? thanks Pin
qqworm2-Jun-05 3:08
qqworm2-Jun-05 3:08 
GeneralRe: how to calculate the Date? thanks Pin
Cedric Moonen2-Jun-05 3:22
Cedric Moonen2-Jun-05 3:22 
GeneralRe: how to calculate the Date? thanks Pin
qqworm2-Jun-05 4:37
qqworm2-Jun-05 4:37 
GeneralRe: how to calculate the Date? thanks Pin
ThatsAlok2-Jun-05 18:46
ThatsAlok2-Jun-05 18:46 
GeneralProblem with ListCtrl while using Manifest file for XP Look Pin
Neeranjan2-Jun-05 1:29
Neeranjan2-Jun-05 1:29 
GeneralGrayscale Image Display Pin
Reiste2-Jun-05 0:51
Reiste2-Jun-05 0:51 
GeneralRe: Grayscale Image Display Pin
Chris Losinger2-Jun-05 3:55
professionalChris Losinger2-Jun-05 3:55 
GeneralDeflateRect Pin
Dennis L2-Jun-05 0:33
Dennis L2-Jun-05 0:33 
GeneralRe: DeflateRect Pin
Stlan2-Jun-05 0:56
Stlan2-Jun-05 0:56 
GeneralRe: DeflateRect Pin
ThatsAlok2-Jun-05 1:10
ThatsAlok2-Jun-05 1:10 
GeneralRe: DeflateRect Pin
Stlan2-Jun-05 1:13
Stlan2-Jun-05 1:13 
GeneralRe: DeflateRect Pin
ThatsAlok2-Jun-05 1:23
ThatsAlok2-Jun-05 1:23 

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.