I have a dialog box with some buttons, etc, and I wanted to make the dialog box full screen, and I was able to do that without any problems(using the code below). But I noticed that when it's full screen, that basically my dialog box has been shifted to the top left corner, with rest of the screen filled in gray to create the "full screen" effect. What I really want is my dialog to be in the center, with gray filled in around it to create the "full screen" effect. Is there any possible way to do this? Thank you!
This is where my controls show up in full screen
I would like to have my controls show up in the middle of the full screen
Code I have to make it full screen:
int cx, cy;
HDC dc = ::GetDC(NULL);
cx = GetDeviceCaps(dc,HORZRES) +
cy = GetDeviceCaps(dc,VERTRES) +
It will be sent to the IP that is set as source-IP in the outgoing header.
If your "real" IP was 10.127.3.54 and you change the header to read "Source-IP = 10.127.3.53", the answer to that packet will go to 10.127.3.53.
If there is an answer, that is. The target will simply drop most packets.
Oh, and if you are after messing the target up on purpose, you will (in most European, Asian and American countries) violate at least one law. Depending on where you are doing this from, you might get more than you expected in terms of response and jailtime.
<marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
In MDI project. I want my child frame fill main frame window. So I inplement this in
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
CWnd* pwnd = AfxGetMainWnd();
pwnd->GetClientRect( &rect );
It's very close to success. But look closely, you will find a bit off. main frame overlapped child frame a little bit. I think that is because of edge of main frame window. But I am getting client area, it should not include edge right? any one can explain?
Anyone using good alternatives to WinHTTP and SoapToolkit?
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
install a service on a host OS such as Win2K or XP? I mean the binary executable file. Should it go into the System32 directory? I see that under System32 there is a Drivers sub-dir but nothing for services.
I realize that I can deliver the service with my runtime deliverables and place it into my runtime directory but prefer not to since I may want to leave the service even though my program has been uninstalled or deleted accidentally.
Clarification: I have a program that I will be installing in addition to the service (a RFC-868 Time Server) I will be installing. When my program is uninstalled or the directory is accidentally deleted, I still want my service to run and am looking for the (Windows) conventional directory location that it should be stored in.
-- modified at 11:19 Thursday 26th January, 2006
Last Visit: 31-Dec-99 19:00 Last Update: 6-Dec-23 5:20