Click here to Skip to main content
16,007,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resize the size problem of the window Pin
Alexandru Savescu13-May-02 22:11
Alexandru Savescu13-May-02 22:11 
GeneralDrawing metafile with my colors Pin
13-May-02 20:18
suss13-May-02 20:18 
GeneralRe: Drawing metafile with my colors Pin
13-May-02 21:41
suss13-May-02 21:41 
GeneralCalling Dll functions from VC++ Pin
RajaSingh R13-May-02 18:42
RajaSingh R13-May-02 18:42 
GeneralRe: Calling Dll functions from VC++ Pin
Paul M Watt13-May-02 18:38
mentorPaul M Watt13-May-02 18:38 
GeneralRe: Calling Dll functions from VC++ Pin
RajaSingh R13-May-02 20:47
RajaSingh R13-May-02 20:47 
GeneralRe: Calling Dll functions from VC++ Pin
James R. Twine14-May-02 5:15
James R. Twine14-May-02 5:15 
Generalclaiming focus for a dialog Pin
Richard Ellis13-May-02 18:09
Richard Ellis13-May-02 18:09 
G'Day All,

I have created a Dialog application that will manipulate some excel spreadsheets. In my OnInitDialog function (I am using MFC) I perform a test to see if excel is currently running. If it is running I display an interim modeless dialog that politely informs the user to shut excel and waits for them to do so (done with a call to WaitForSingleObject if that is relevant). This is all fine. Once excel is closed then I close this interim dialog and my OnInitDialog function completes and my 'real' dialog is displayed. However my problem is that when my 'real' dialog is displayed it is done so without the focus - it is not the currently active window. I have tried numerous things such as SetActiveWindow(), BringWindowToTop() etc without success. I was wondering if anyone could suggest a way of having my 'real' dialog start with the focus as it normally would if I wasn't mucking around with other windows whilst it was starting.

Much Thanks In Advance

Richard.
GeneralRe: claiming focus for a dialog Pin
Nish Nishant13-May-02 19:56
sitebuilderNish Nishant13-May-02 19:56 
GeneralRe: claiming focus for a dialog Pin
Richard Ellis13-May-02 20:08
Richard Ellis13-May-02 20:08 
GeneralCSockets and RPC's Pin
Pyropat13-May-02 17:26
Pyropat13-May-02 17:26 
GeneralRe: CSockets and RPC's Pin
Paul M Watt13-May-02 18:46
mentorPaul M Watt13-May-02 18:46 
GeneralRe: CSockets and RPC's Pin
14-May-02 5:57
suss14-May-02 5:57 
GeneralRendering Font Fixed Width Pin
MJ_Karas13-May-02 13:27
MJ_Karas13-May-02 13:27 
GeneralRe: Rendering Font Fixed Width Pin
Prem Kumar13-May-02 17:14
Prem Kumar13-May-02 17:14 
GeneralRe: Rendering Font Fixed Width Pin
MJ_Karas13-May-02 17:30
MJ_Karas13-May-02 17:30 
GeneralRe: Rendering Font Fixed Width Pin
Paul M Watt13-May-02 18:52
mentorPaul M Watt13-May-02 18:52 
GeneralRe: Rendering Font Fixed Width Pin
MJ_Karas14-May-02 2:07
MJ_Karas14-May-02 2:07 
GeneralRe: Rendering Font Fixed Width Pin
Niklas L13-May-02 22:15
Niklas L13-May-02 22:15 
GeneralRe: Rendering Font Fixed Width Pin
MJ_Karas14-May-02 2:12
MJ_Karas14-May-02 2:12 
GeneralRe: Rendering Font Fixed Width Pin
Mike Nordell17-May-02 7:17
Mike Nordell17-May-02 7:17 
QuestionHow do you hide a button in MFC? Pin
albean13-May-02 12:55
albean13-May-02 12:55 
AnswerRe: How do you hide a button in MFC? Pin
valikac13-May-02 13:08
valikac13-May-02 13:08 
AnswerRe: How do you hide a button in MFC? Pin
Nish Nishant13-May-02 15:21
sitebuilderNish Nishant13-May-02 15:21 
GeneralRe: How do you hide a button in MFC? Pin
Maxwell Chen13-May-02 17:17
Maxwell Chen13-May-02 17:17 

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.