Click here to Skip to main content
15,900,378 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionPopup Form Pin
BranislavBallay4-Mar-07 0:42
BranislavBallay4-Mar-07 0:42 
QuestionPassword Form Pin
krajah103-Mar-07 20:46
krajah103-Mar-07 20:46 
AnswerRe: Password Form Pin
Smart_Boy22-Mar-07 0:11
Smart_Boy22-Mar-07 0:11 
QuestionRun Once and accept parameters Pin
Christopher Thornburg2-Mar-07 9:59
Christopher Thornburg2-Mar-07 9:59 
AnswerRe: Run Once and accept parameters Pin
JUNEYT2-Mar-07 11:44
JUNEYT2-Mar-07 11:44 
AnswerRe: Run Once and accept parameters Pin
Christopher Thornburg2-Mar-07 12:30
Christopher Thornburg2-Mar-07 12:30 
GeneralRe: Run Once and accept parameters Pin
kubben2-Mar-07 16:10
kubben2-Mar-07 16:10 
QuestionCreating a SDI window from a dialog Pin
sascha.billian1-Mar-07 3:44
sascha.billian1-Mar-07 3:44 
Hi there!

[edit]:
Sorry, wrong Message board. I'll post it on the VC++/MFC Board
[/edit]
We've got a real big problem, allthough it seems to be not really difficult:

Our main application is a dialog which definitely MUST remain a dialog.
My colleague wants to create a SDI window from this dialog by clicking on a specific button.

Still no problem.

The problem ist, that the window seems not to get the windows messages:

Usually if you create a method to handle a mouseclick on a button in the toolbar, you can also create a function

OnUpdateClickXXX(CCmdUI* pCmdUI)

for example you could gray a specific button, if ButtonXXX is being clicked on.
But OnUpdateClickXXX is never called!
For me it seems, that the WM_PAINT message is being processed just by the dialog.

the SDI window is created with

CSingleDocTemplate* pDocTemplate;<br />
  pDocTemplate = new CSingleDocTemplate(<br />
  IDR_MAINFRAME,<br />
  RUNTIME_CLASS(CSDI_LeerDoc),<br />
  RUNTIME_CLASS(CMainFrame),       <br />
  RUNTIME_CLASS(CSDI_LeerView));<br />
  AfxGetApp()->AddDocTemplate(pDocTemplate);  //because i am in the dialog, i have to call AfxGetApp() to register the doctemplate with the application


when you click on a button in the dialog.

All OnClickBlah, OnUpdateBlah... methods are inserted by the class wizard, and the AFX_MESSAGE_MAP
has the correct ON_COMMAND, ON_UPDATE_COMMAND...entries

Could you give us some hints, where we could look for that problem?

Sure, the problem is caused by the dialog "standing" between the application and the doc/view.

Thank you all, and i hope you can help us with our problem.

Sascha Billian
QuestionProblem with tabpages Pin
Dnmnt1-Mar-07 1:07
Dnmnt1-Mar-07 1:07 
AnswerRe: Problem with tabpages Pin
Tamimi - Code1-Mar-07 1:24
Tamimi - Code1-Mar-07 1:24 
QuestionImportant question for me Pin
AL-yasofy28-Feb-07 5:24
AL-yasofy28-Feb-07 5:24 
AnswerRe: Important question for me Pin
JUNEYT1-Mar-07 5:42
JUNEYT1-Mar-07 5:42 
AnswerRe: Important question for me Pin
Newbie002-Mar-07 4:43
Newbie002-Mar-07 4:43 
QuestionFolder Pin
AL-yasofy28-Feb-07 5:12
AL-yasofy28-Feb-07 5:12 
Questiondos Pin
AL-yasofy28-Feb-07 5:07
AL-yasofy28-Feb-07 5:07 
AnswerRe: dos Pin
led mike28-Feb-07 5:27
led mike28-Feb-07 5:27 
AnswerRe: dos Pin
kubben28-Feb-07 5:28
kubben28-Feb-07 5:28 
AnswerRe: dos Pin
Newbie0028-Feb-07 10:52
Newbie0028-Feb-07 10:52 
QuestionMonitor UPS Pin
abhiramsss27-Feb-07 21:56
abhiramsss27-Feb-07 21:56 
AnswerRe: Monitor UPS Pin
Pete O'Hanlon28-Feb-07 10:45
mvePete O'Hanlon28-Feb-07 10:45 
QuestionColor Of Tab Control Pin
Vikram.....27-Feb-07 1:42
Vikram.....27-Feb-07 1:42 
AnswerRe: Color Of Tab Control Pin
JUNEYT27-Feb-07 11:14
JUNEYT27-Feb-07 11:14 
QuestionDynamic Combobox - refresh list items on the fly Pin
CaptainSpecial26-Feb-07 12:56
CaptainSpecial26-Feb-07 12:56 
AnswerRe: Dynamic Combobox - refresh list items on the fly Pin
CaptainSpecial27-Feb-07 12:57
CaptainSpecial27-Feb-07 12:57 
GeneralRe: Dynamic Combobox - refresh list items on the fly Pin
RabidHamster2-Mar-07 4:31
RabidHamster2-Mar-07 4:31 

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.