Click here to Skip to main content
15,916,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to fill a vector or a list with data from a file! Pin
JMajors9812-Jun-02 4:50
JMajors9812-Jun-02 4:50 
AnswerRe: How to fill a vector or a list with data from a file! Pin
Chris Losinger12-Jun-02 5:39
professionalChris Losinger12-Jun-02 5:39 
AnswerRe: How to fill a vector or a list with data from a file! Pin
Joaquín M López Muñoz12-Jun-02 11:57
Joaquín M López Muñoz12-Jun-02 11:57 
AnswerRe: How to fill a vector or a list with data from a file! Pin
Mike Nordell13-Jun-02 3:23
Mike Nordell13-Jun-02 3:23 
GeneralParseCommandLine Pin
Anthony988712-Jun-02 4:45
Anthony988712-Jun-02 4:45 
GeneralRe: ParseCommandLine Pin
Le centriste12-Jun-02 5:37
Le centriste12-Jun-02 5:37 
GeneralRe: ParseCommandLine Pin
Navin12-Jun-02 8:39
Navin12-Jun-02 8:39 
GeneralITaskBarList2::MarkFullScreenWindow Pin
12-Jun-02 4:20
suss12-Jun-02 4:20 
Hi there,

I'm making an browser and trying to implement full-screen mode.
Stumbled on a problem.
For now I have this code:


// find taskbar window
CWnd* pWnd = CWnd::FindWindow(_T("Shell_TrayWnd"), _T(""));

if(!pWnd )
return;

/*CRect tr;
pWnd->GetWindowRect(&tr);

int th = tr.Height();*/

if( bHide )
{
// hide taskbar
pWnd->ShowWindow(SW_HIDE);
((CMainFrame*)GetParentFrame())->SetStatusBar();
((CMainFrame*)GetParentFrame())->SetToolBar();
((CMainFrame*)GetParentFrame())->ShowWindow(SW_SHOWMAXIMIZED);
bHide = FALSE;
}
else
{
// show taskbar
pWnd->ShowWindow(SW_SHOW);
((CMainFrame*)GetParentFrame())->SetStatusBar();
((CMainFrame*)GetParentFrame())->SetToolBar();
((CMainFrame*)GetParentFrame())->ShowWindow(SW_RESTORE);
bHide = TRUE;
}

It hides the taskbar, maximizes the window and hides status and toolbar.
The problem is that the window does not overlap the hidden taskbar so its pretty useless.

Now I came along this method;

TaskBarList2::MarkFullScreenWindow

It's supposed to do just what I want, but I can't get it to work right.
If anyone can help me, please do.


QuestionCan Library Files be Modified Pin
Steve Thresher12-Jun-02 4:23
Steve Thresher12-Jun-02 4:23 
AnswerRe: Can Library Files be Modified Pin
Chris Losinger12-Jun-02 5:41
professionalChris Losinger12-Jun-02 5:41 
GeneralRe: Can Library Files be Modified Pin
Steve Thresher12-Jun-02 6:15
Steve Thresher12-Jun-02 6:15 
GeneralRe: Can Library Files be Modified Pin
Chris Losinger12-Jun-02 6:24
professionalChris Losinger12-Jun-02 6:24 
GeneralAutorun Pin
12-Jun-02 4:20
suss12-Jun-02 4:20 
GeneralRe: Autorun Pin
Jeremy Falcon12-Jun-02 4:55
professionalJeremy Falcon12-Jun-02 4:55 
GeneralODBC Pin
12-Jun-02 4:17
suss12-Jun-02 4:17 
GeneralRe: ODBC Pin
markkuk12-Jun-02 9:08
markkuk12-Jun-02 9:08 
GeneralRe: ODBC Pin
12-Jun-02 9:35
suss12-Jun-02 9:35 
GeneralRe: ODBC Pin
12-Jun-02 11:28
suss12-Jun-02 11:28 
GeneralRe: ODBC Pin
12-Jun-02 16:58
suss12-Jun-02 16:58 
GeneralRe: ODBC Pin
14-Jun-02 11:13
suss14-Jun-02 11:13 
Generalpointers and containers in dll Pin
12-Jun-02 4:08
suss12-Jun-02 4:08 
GeneralRe: pointers and containers in dll Pin
Joaquín M López Muñoz12-Jun-02 4:21
Joaquín M López Muñoz12-Jun-02 4:21 
Generalwhy this linker error(lnk2001) Pin
12-Jun-02 3:56
suss12-Jun-02 3:56 
GeneralRe: why this linker error(lnk2001) Pin
Joaquín M López Muñoz12-Jun-02 4:22
Joaquín M López Muñoz12-Jun-02 4:22 
GeneralRe: why this linker error(lnk2001) Pin
12-Jun-02 4:23
suss12-Jun-02 4:23 

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.