Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Storing files in a dll, or somewhere like that... Pin
DLChambers23-Mar-07 15:04
DLChambers23-Mar-07 15:04 
Questionserial.Open(_T("COM1")); in CSerial class Pin
m-hwang23-Mar-07 14:01
m-hwang23-Mar-07 14:01 
AnswerRe: serial.Open(_T("COM1")); in CSerial class Pin
Cedric Moonen23-Mar-07 22:41
Cedric Moonen23-Mar-07 22:41 
GeneralRe: serial.Open(_T("COM1")); in CSerial class Pin
m-hwang24-Mar-07 5:50
m-hwang24-Mar-07 5:50 
AnswerRe: serial.Open(_T("COM1")); in CSerial class Pin
Gary R. Wheeler24-Mar-07 2:47
Gary R. Wheeler24-Mar-07 2:47 
QuestionEject one USB device on multiple USB devices Pin
fuxiangwu23-Mar-07 12:37
fuxiangwu23-Mar-07 12:37 
QuestionNewbie learning MFC, confused about Document/View Pin
maxmaven23-Mar-07 10:26
maxmaven23-Mar-07 10:26 
AnswerRe: Newbie learning MFC, confused about Document/View Pin
Gary R. Wheeler24-Mar-07 3:37
Gary R. Wheeler24-Mar-07 3:37 
maxmaven wrote:
think I don't have a good understanding of what to do with this Document/View architecture


Don't feel bad; document/view isn't the easiest thing in the world, which may explain why it's not very popular.

maxmaven wrote:
void info_pane_1::OnDraw(CDC *pDC)
{	CCodeBuilderDoc *p_Doc = (CCodeBuilderDoc *) GetDocument();
	ASSERT_VALID(p_Doc);
	state_InsertionSortCheck = p_Doc->state_InsertionSortCheck;
	UpdateData(FALSE);
}


Instead of getting the check state from your document and initializing the view in your OnDraw override, you should do it in either your OnInitialUpdate() or OnUpdate() override.

maxmaven wrote:
I don't understand why my project/solution has a CMyAppView descended from CView in MyAppView.cpp/.h. I haven't done anything to this class. Is it being used?


If you aren't referencing it and haven't implemented it, you can probably remove it. As a suggestion, save a copy of your project and its source files in another folder, so that if you need to revert back to its current state, you can.


Software Zen: delete this;

GeneralRe: Newbie learning MFC, confused about Document/View Pin
maxmaven24-Mar-07 9:37
maxmaven24-Mar-07 9:37 
Questionalways load windows default color scheme in a dialog??? Pin
tiflo23-Mar-07 9:28
tiflo23-Mar-07 9:28 
QuestionContext Menu and displaying menu on screen Pin
flippydeflippydebop23-Mar-07 8:17
flippydeflippydebop23-Mar-07 8:17 
AnswerRe: Context Menu and displaying menu on screen Pin
flippydeflippydebop23-Mar-07 8:39
flippydeflippydebop23-Mar-07 8:39 
Questionany fn to know the memoru allocated by SafeArrayCreate() Pin
GANsJob23-Mar-07 7:24
GANsJob23-Mar-07 7:24 
AnswerRe: any fn to know the memoru allocated by SafeArrayCreate() Pin
prasad_som23-Mar-07 20:44
prasad_som23-Mar-07 20:44 
Questioncan't retrieve the string from string table using loadstring() Pin
GANsJob23-Mar-07 7:16
GANsJob23-Mar-07 7:16 
AnswerRe: can't retrieve the string from string table using loadstring() Pin
perle123-Mar-07 14:22
perle123-Mar-07 14:22 
Questionconfusing problem Pin
swatgodjr23-Mar-07 6:58
swatgodjr23-Mar-07 6:58 
AnswerRe: confusing problem Pin
Christian Graus23-Mar-07 7:10
protectorChristian Graus23-Mar-07 7:10 
GeneralRe: confusing problem Pin
swatgodjr23-Mar-07 7:42
swatgodjr23-Mar-07 7:42 
AnswerRe: confusing problem Pin
Phil J Pearson23-Mar-07 7:38
Phil J Pearson23-Mar-07 7:38 
AnswerRe: confusing problem Pin
Sameerkumar Namdeo23-Mar-07 22:22
Sameerkumar Namdeo23-Mar-07 22:22 
GeneralRe: confusing problem Pin
swatgodjr24-Mar-07 2:52
swatgodjr24-Mar-07 2:52 
GeneralRe: confusing problem Pin
Sameerkumar Namdeo25-Mar-07 16:48
Sameerkumar Namdeo25-Mar-07 16:48 
QuestionInitializtion Code for Dialog Boxes Pin
gunner_uk200023-Mar-07 4:48
gunner_uk200023-Mar-07 4:48 
AnswerRe: Initializtion Code for Dialog Boxes Pin
led mike23-Mar-07 4:52
led mike23-Mar-07 4:52 

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.