Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Communication between class Pin
antoine_david7-Jul-05 6:08
antoine_david7-Jul-05 6:08 
GeneralRe: Communication between class Pin
David Crow7-Jul-05 6:16
David Crow7-Jul-05 6:16 
GeneralRe: Communication between class Pin
S. Senthil Kumar7-Jul-05 6:24
S. Senthil Kumar7-Jul-05 6:24 
GeneralRe: Communication between class Pin
antoine_david7-Jul-05 20:49
antoine_david7-Jul-05 20:49 
Generalgdiplus Image Pin
Abhiman7-Jul-05 4:31
Abhiman7-Jul-05 4:31 
GeneralMfc42.dll Pin
TUMB7-Jul-05 4:30
TUMB7-Jul-05 4:30 
GeneralRe: Mfc42.dll Pin
David Crow7-Jul-05 4:54
David Crow7-Jul-05 4:54 
GeneralTried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
balaclavabob7-Jul-05 4:26
balaclavabob7-Jul-05 4:26 
Hi,

I am trying to make Nishant Sivakumar - "Using global hotkeys" start hidden:
http://www.codeproject.com/system/nishhotkeys01.asp

I have added the hidden modal code from Nishant Sivakumar - "Some handy dialog box tricks, tips and workarounds ":
http://www.codeproject.com/dialog/dlgboxtricks.asp

It compiles, but it doesn't become hidden.

Changes to the "Using global hotkeys" project I made:

In "HotKeyTestDlg.cpp" I added:

void CHotKeyTestDlg::OnWindowPosChanging(WINDOWPOS * pos)
{
if(!visible)
pos->flags &= ~SWP_SHOWWINDOW;
CDialog::OnWindowPosChanging(pos);
}

and added "visible = FALSE;" to:

CHotKeyTestDlg::CHotKeyTestDlg(CWnd* pParent /*=NULL*/)
: CDialog(CHotKeyTestDlg::IDD, pParent)

In "HotKeyTestDlg.h" I added "BOOL visible;" to protected under:

class CHotKeyTestDlg : public CDialog

This wouldn't compile "error C2509: 'OnWindowPosChanging' : member function not declared in 'CHotKeyTestDlg'" till I added "void OnWindowPosChanging(WINDOWPOS * pos);" to public under:

class CHotKeyTestDlg : public CDialog

So it now compiles and runs, but it doesn't start hidden.

GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
David Crow7-Jul-05 5:03
David Crow7-Jul-05 5:03 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
balaclavabob7-Jul-05 6:43
balaclavabob7-Jul-05 6:43 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
David Crow7-Jul-05 6:51
David Crow7-Jul-05 6:51 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
balaclavabob7-Jul-05 7:20
balaclavabob7-Jul-05 7:20 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
David Crow7-Jul-05 7:28
David Crow7-Jul-05 7:28 
GeneralRe: Tried dialog hidden technique from dlgboxtricks but it didn't work.... Pin
balaclavabob7-Jul-05 7:36
balaclavabob7-Jul-05 7:36 
QuestionPNG displaying in VISUAL C - is it possible ? Pin
seq-7-Jul-05 3:34
seq-7-Jul-05 3:34 
AnswerRe: PNG displaying in VISUAL C - is it possible ? Pin
Andrew Kirillov7-Jul-05 3:47
Andrew Kirillov7-Jul-05 3:47 
AnswerRe: PNG displaying in VISUAL C - is it possible ? Pin
JWood7-Jul-05 8:33
JWood7-Jul-05 8:33 
GeneralMail Server Project Pin
saood swar7-Jul-05 2:29
saood swar7-Jul-05 2:29 
GeneralRe: Mail Server Project Pin
ThatsAlok7-Jul-05 2:40
ThatsAlok7-Jul-05 2:40 
GeneralRe: Mail Server Project Pin
saood swar7-Jul-05 3:27
saood swar7-Jul-05 3:27 
GeneralRe: Mail Server Project Pin
Ravi Bhavnani7-Jul-05 10:36
professionalRavi Bhavnani7-Jul-05 10:36 
GeneralMSXML ( HELP ) Pin
Anonymous7-Jul-05 2:16
Anonymous7-Jul-05 2:16 
GeneralSorting and searching a CSV file Pin
Sree_india7-Jul-05 0:55
Sree_india7-Jul-05 0:55 
GeneralRe: Sorting and searching a CSV file Pin
Christian Graus7-Jul-05 1:54
protectorChristian Graus7-Jul-05 1:54 
GeneralCall function via inline assembler Pin
georg waechter7-Jul-05 0:49
georg waechter7-Jul-05 0:49 

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.