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

C / C++ / MFC

 
GeneralRe: Unusal Visual C++ behavior please help Pin
Ron Russell13-Dec-00 9:53
Ron Russell13-Dec-00 9:53 
GeneralHiding an application from the Tasklist Pin
Ron Russell13-Dec-00 6:14
Ron Russell13-Dec-00 6:14 
GeneralRe: Hiding an application from the Tasklist Pin
13-Dec-00 6:59
suss13-Dec-00 6:59 
GeneralRe: Hiding an application from the Tasklist Pin
Ron Russell13-Dec-00 7:42
Ron Russell13-Dec-00 7:42 
GeneralBackground Image on CListCtrl Pin
Kannan Kalyanaraman12-Dec-00 23:52
Kannan Kalyanaraman12-Dec-00 23:52 
QuestionUpdating Resources under Windows 98/Me???? Pin
12-Dec-00 22:11
suss12-Dec-00 22:11 
QuestionHow to create a window without title bar? Pin
Satervalley12-Dec-00 22:02
Satervalley12-Dec-00 22:02 
AnswerRe: How to create a window without title bar? Pin
Tim Deveaux14-Dec-00 13:27
Tim Deveaux14-Dec-00 13:27 
Basically, you want WS_VISIBLE | WS_POPUP. Here's some code (taken out of context) that I use. It will create a little rectangular window near the uppper left of your screen that is hard to see unless you throw in a little drawing code. From here, everthings up to you - title, border, menus, whatever.

m_wndSession is a class member derived from a CWnd. It it used to create a kiosk effect by sizing itself to the screen and overriding the ususal drawing fns.

This code just shows creation and makes it black so you can see it. (As I say, this code is out of context).

I register a new class here so I can get ownership of the device context, because this is a greedy and selfish window and definitely not a team player.

            // create the session window...
            CString csWndClass = AfxRegisterWndClass(CS_OWNDC,
    	             0,
		0,
		0);
 
	if(!(m_wndSession.CreateEx(WS_EX_LEFT,
                         (LPCTSTR)csWndClass,
             	"Session Window",
		WS_VISIBLE|WS_POPUP,
		10,10,100,20,	
		NULL,
		NULL
                       ))) {
                AfxMessageBox("Failed to Create Session Window)");
                return;
           }
 
            // just for testing... 
             CBrush cbr(RGB(0,0,0));
             CDC* pDC = m_wndSession.GetDC();
             pDC->SelectObject(cbr);
	RECT rect = {0,0,1500,1500};   // ok - more than we need... 
	pDC->FillRect(&rect,&cbr);
 
             m_wndSession.Invalidate();
 
...

Questionhow do i make a dialog hidden *before* it gets shown? Pin
12-Dec-00 12:27
suss12-Dec-00 12:27 
AnswerRe: how do i make a dialog hidden *before* it gets shown? Pin
Erik Funkenbusch12-Dec-00 13:25
Erik Funkenbusch12-Dec-00 13:25 
GeneralPortable Encryption API Pin
Alvaro Mendez12-Dec-00 8:15
Alvaro Mendez12-Dec-00 8:15 
GeneralRe: Portable Encryption API Pin
13-Dec-00 7:09
suss13-Dec-00 7:09 
GeneralCalculating Time Pin
12-Dec-00 5:27
suss12-Dec-00 5:27 
GeneralAVIs for CAnimateCtrl Pin
Luis Barreira12-Dec-00 4:00
Luis Barreira12-Dec-00 4:00 
QuestionHow to display elapsing time Pin
leonwoo12-Dec-00 3:52
leonwoo12-Dec-00 3:52 
AnswerRe: How to display elapsing time Pin
NormDroid12-Dec-00 4:50
professionalNormDroid12-Dec-00 4:50 
GeneralCheckboxes in a CListCtrl Pin
12-Dec-00 3:45
suss12-Dec-00 3:45 
GeneralShell hooks in the absence of Explorer.exe Pin
Ron Russell12-Dec-00 3:37
Ron Russell12-Dec-00 3:37 
GeneralRe: Shell hooks in the absence of Explorer.exe Pin
12-Dec-00 18:19
suss12-Dec-00 18:19 
GeneralCORBA Pin
12-Dec-00 1:54
suss12-Dec-00 1:54 
GeneralFile hiding as in "Magic Folders" Pin
12-Dec-00 0:47
suss12-Dec-00 0:47 
GeneralRe: File hiding as in Pin
Jim Howard12-Dec-00 8:26
Jim Howard12-Dec-00 8:26 
QuestionInserting an ActiveX into a CWebBrowser2 window? Pin
jerry0davis11-Dec-00 23:35
jerry0davis11-Dec-00 23:35 
GeneralVB corrupts arguments when calling C++ DLL function? [Help! I'm falling :] Pin
Brendan Tregear11-Dec-00 17:02
Brendan Tregear11-Dec-00 17:02 
GeneralRe: Solution Pin
Brendan Tregear13-Dec-00 12:12
Brendan Tregear13-Dec-00 12:12 

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.