Click here to Skip to main content
16,011,482 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFlexiGrid Pin
subra1-Jul-02 20:54
subra1-Jul-02 20:54 
GeneralAn app with GUI and CUI Pin
Janine1-Jul-02 20:51
Janine1-Jul-02 20:51 
GeneralRe: An app with GUI and CUI Pin
Vuemme2-Jul-02 2:03
Vuemme2-Jul-02 2:03 
GeneralRe: An app with GUI and CUI Pin
Mike Nordell2-Jul-02 6:53
Mike Nordell2-Jul-02 6:53 
GeneralRe: An app with GUI and CUI Pin
Janine3-Jul-02 19:37
Janine3-Jul-02 19:37 
Generalbackcolor property urgent!! pl. reply Pin
shanker1-Jul-02 20:07
shanker1-Jul-02 20:07 
GeneralJust single instance of my app. Pin
DerekSaw1-Jul-02 17:23
DerekSaw1-Jul-02 17:23 
GeneralRe: Just single instance of my app. Pin
Atlantys1-Jul-02 17:44
Atlantys1-Jul-02 17:44 
When the app starts up, do a check for a mutex. if it doesn't exist create one, and if not then find the existing app and restore it..

something like:

CString strMutexName = _T("MyApp"); // can also use a GUID here
if (!m_hMutex) {
m_hMutex = CreateMutex(NULL, FALSE, strMutexName);
} else {
/* go through all the current windows and restore the existing version of your app. i can't remember how to do this now.. something to do with EnumWindow i'm sure, just don't use FindWindow (heard bad things about it Unsure | :~ ). */
}

hope this helps.Smile | :)


GeneralRe: Just single instance of my app. Pin
Nish Nishant1-Jul-02 22:47
sitebuilderNish Nishant1-Jul-02 22:47 
GeneralRe: Just single instance of my app. Pin
2-Jul-02 4:51
suss2-Jul-02 4:51 
GeneralRe: Just single instance of my app. Pin
Neville Franks1-Jul-02 23:28
Neville Franks1-Jul-02 23:28 
GeneralRe: Just single instance of my app. Pin
Scott H. Settlemier2-Jul-02 3:23
Scott H. Settlemier2-Jul-02 3:23 
Questionhow to delete a print job ? Pin
zhu1-Jul-02 17:21
zhu1-Jul-02 17:21 
Generalsending a Message to OnDraw Pin
1-Jul-02 17:17
suss1-Jul-02 17:17 
GeneralRe: sending a Message to OnDraw Pin
Ernest Laurentin1-Jul-02 17:40
Ernest Laurentin1-Jul-02 17:40 
GeneralOpening a File from server Pin
Rene De La Garza1-Jul-02 16:41
Rene De La Garza1-Jul-02 16:41 
GeneralRe: Opening a File from server Pin
benjymous2-Jul-02 0:27
benjymous2-Jul-02 0:27 
QuestionHow does ::MessageBox(...) work?? Pin
1-Jul-02 15:08
suss1-Jul-02 15:08 
AnswerRe: How does ::MessageBox(...) work?? Pin
Christian Graus1-Jul-02 15:28
protectorChristian Graus1-Jul-02 15:28 
GeneralRe: How does ::MessageBox(...) work?? Pin
David Carkeet1-Jul-02 18:06
David Carkeet1-Jul-02 18:06 
GeneralRe: How does ::MessageBox(...) work?? Pin
Christian Graus1-Jul-02 18:54
protectorChristian Graus1-Jul-02 18:54 
GeneralRe: How does ::MessageBox(...) work?? Pin
Iain Clarke, Warrior Programmer2-Jul-02 4:17
Iain Clarke, Warrior Programmer2-Jul-02 4:17 
AnswerRe: How does ::MessageBox(...) work?? Pin
1-Jul-02 15:32
suss1-Jul-02 15:32 
AnswerRe: How does ::MessageBox(...) work?? Pin
Nish Nishant1-Jul-02 15:48
sitebuilderNish Nishant1-Jul-02 15:48 
GeneralSwitching Default Buttons :: MFC Pin
valikac1-Jul-02 14:47
valikac1-Jul-02 14:47 

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.