Click here to Skip to main content
15,911,476 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dragging rectangle Pin
David Crow22-Dec-04 9:03
David Crow22-Dec-04 9:03 
GeneralRe: Dragging rectangle Pin
Anonymous22-Dec-04 11:45
Anonymous22-Dec-04 11:45 
GeneralRe: Dragging rectangle Pin
John R. Shaw22-Dec-04 16:05
John R. Shaw22-Dec-04 16:05 
GeneralVC6 function template problems Pin
peterchen22-Dec-04 7:47
peterchen22-Dec-04 7:47 
GeneralRe: VC6 function template problems Pin
Antti Keskinen22-Dec-04 13:04
Antti Keskinen22-Dec-04 13:04 
GeneralRe: VC6 function template problems Pin
peterchen22-Dec-04 19:53
peterchen22-Dec-04 19:53 
GeneralSetWindowText gives me headache Pin
toxcct22-Dec-04 7:02
toxcct22-Dec-04 7:02 
GeneralRe: SetWindowText gives me headache Pin
David Crow22-Dec-04 8:18
David Crow22-Dec-04 8:18 
Is m_pbPreviewFact mapped to a valid control? In other words, you've probably got a DoDataExchange() method that looks similar to:

void COpenFilesDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(COpenFilesDlg)
    DDX_Control(pDX, SOME_ID_HERE, m_pbPreviewFact);
    //}}AFX_DATA_MAP
}
Look to make sure that SOME_ID_HERE is in the project's resource.h file with a unique number, and that it is also in the dialog's template in the project's .rc file.

toxcct wrote:
few day ago, this code was working well, and today, when i was updating another class of the program (which have no relation of any order with this one), it stops me there now...

What happens if you remove this class? Does the SetWindowText() call start working again?


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: SetWindowText gives me headache Pin
toxcct22-Dec-04 8:31
toxcct22-Dec-04 8:31 
GeneralRe: SetWindowText gives me headache Pin
toxcct22-Dec-04 8:45
toxcct22-Dec-04 8:45 
GeneralRe: SetWindowText gives me headache Pin
David Crow22-Dec-04 9:00
David Crow22-Dec-04 9:00 
GeneralRe: SetWindowText gives me headache Pin
Rick York22-Dec-04 13:05
mveRick York22-Dec-04 13:05 
GeneralRe: SetWindowText gives me headache Pin
toxcct22-Dec-04 18:43
toxcct22-Dec-04 18:43 
GeneralRe: SetWindowText gives me headache Pin
David Crow23-Dec-04 2:11
David Crow23-Dec-04 2:11 
GeneralPhone Number Format Pin
Anonymous22-Dec-04 6:31
Anonymous22-Dec-04 6:31 
GeneralRe: Phone Number Format Pin
David Crow22-Dec-04 8:13
David Crow22-Dec-04 8:13 
GeneralRe: Phone Number Format Pin
Anonymous22-Dec-04 9:36
Anonymous22-Dec-04 9:36 
GeneralScrollbar doesn't scroll all the way Pin
Budric B.22-Dec-04 4:49
Budric B.22-Dec-04 4:49 
GeneralChanging screen resolution in windows xp Pin
Mohammad A Gdeisat22-Dec-04 4:41
Mohammad A Gdeisat22-Dec-04 4:41 
GeneralRe: Changing screen resolution in windows xp Pin
David Crow22-Dec-04 5:07
David Crow22-Dec-04 5:07 
GeneralRe: Changing screen resolution in windows xp Pin
Mohammad A Gdeisat22-Dec-04 7:38
Mohammad A Gdeisat22-Dec-04 7:38 
GeneralStrange CTypedPtrArray error Pin
Polly Parrot22-Dec-04 3:31
Polly Parrot22-Dec-04 3:31 
Generalinserting bmp in file Pin
verma-rahul22-Dec-04 3:07
verma-rahul22-Dec-04 3:07 
GeneralRe: inserting bmp in file Pin
David Crow22-Dec-04 5:04
David Crow22-Dec-04 5:04 
GeneralRe: inserting bmp in file Pin
verma-rahul22-Dec-04 19:00
verma-rahul22-Dec-04 19:00 

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.