Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGet selected text from IE and Word Pin
Franc Morales5-Dec-05 11:45
Franc Morales5-Dec-05 11:45 
AnswerRe: Get selected text from IE and Word Pin
Sheng Jiang 蒋晟5-Dec-05 18:32
Sheng Jiang 蒋晟5-Dec-05 18:32 
GeneralRe: Get selected text from IE and Word Pin
Franc Morales5-Dec-05 19:00
Franc Morales5-Dec-05 19:00 
QuestionCtrl + Tab => next Page Pin
WernerP5-Dec-05 10:15
WernerP5-Dec-05 10:15 
QuestionProperty Page Tab titles Pin
code dope5-Dec-05 9:22
code dope5-Dec-05 9:22 
QuestionRe: Property Page Tab titles Pin
David Crow5-Dec-05 9:47
David Crow5-Dec-05 9:47 
AnswerRe: Property Page Tab titles Pin
PJ Arends5-Dec-05 14:54
professionalPJ Arends5-Dec-05 14:54 
Questionerror C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 9:14
newbie53455-Dec-05 9:14 
Hello -
This may be a very dumb question, but I've struggled with it a long time. I have two text boxes and I'm trying to control their visibility and enabled/disabled state, but no matter what I do I keep getting this or something like it with different commands:

VestExample error C2228: left of '.ShowWindow' must have class/struct/union type

Here is some of the code:

In header file (Dialogue Data):
int m_partnum; // text box
int m_degrees; // text box

In .cpp file:
DDX_Text(pDX, IDC_PARTNUM, m_partnum);
DDX_Text(pDX, IDC_DEGREES, m_degrees);

Lines causing error:
m_partnum.ShowWindow(SW_HIDE);
m_partnum.ShowWindow(SW_SHOW);
m_degrees.EnableWindow(true);

I have various buttons that respond just fine to these commands (defined in class wizard) and the text boxes are defined in the class wizard too. Thanks in advance for any help.

-- modified at 16:02 Monday 5th December, 2005
AnswerRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
Maximilien5-Dec-05 9:39
Maximilien5-Dec-05 9:39 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 10:01
newbie53455-Dec-05 10:01 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
Maximilien5-Dec-05 10:19
Maximilien5-Dec-05 10:19 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 11:03
newbie53455-Dec-05 11:03 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
toxcct5-Dec-05 22:38
toxcct5-Dec-05 22:38 
QuestionRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
David Crow5-Dec-05 9:40
David Crow5-Dec-05 9:40 
AnswerRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 10:02
newbie53455-Dec-05 10:02 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
David Crow5-Dec-05 10:39
David Crow5-Dec-05 10:39 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 11:02
newbie53455-Dec-05 11:02 
Questionnmake launches Visual Studio 2003 Pin
Ian Bowler5-Dec-05 8:35
Ian Bowler5-Dec-05 8:35 
QuestionLooking to learn Pin
geniusintraining5-Dec-05 8:16
geniusintraining5-Dec-05 8:16 
AnswerRe: Looking to learn Pin
Bob Stanneveld5-Dec-05 9:37
Bob Stanneveld5-Dec-05 9:37 
QuestionControl Messges to Parent?? Pin
SublimeRide5-Dec-05 7:26
SublimeRide5-Dec-05 7:26 
QuestionRe: Control Messges to Parent?? Pin
David Crow5-Dec-05 7:51
David Crow5-Dec-05 7:51 
AnswerRe: Control Messges to Parent?? Pin
SublimeRide5-Dec-05 9:20
SublimeRide5-Dec-05 9:20 
QuestionScheduling Serial Port Access Pin
jheddings5-Dec-05 6:48
jheddings5-Dec-05 6:48 
QuestionAccepting a file Pin
islheg5-Dec-05 6:11
islheg5-Dec-05 6:11 

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.