Im my applcation constanly im placing one dialog at top of the screen.So if i maximize my child windows definetly quater of child frame will get hide behind the dialog.To overcome this problem i planed that when i maximize the child frame,then it maximized to full window but top of the window should below the dialog.
Can u understand my point.
Can't you use the SetWindowPos (and optionally play with the Z-Order) for the one being Maximized? Or does this not fill your requirements?
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
I used that one also.I can get my required window size.But in that maximized window, the title of my child window,system menu,staus bar all are missing.simpla window without caption,without mimnimize,maximize bar is get displayed.When i double click on the bar,then the window comes to previous position with caption and system menu.
I coded like this
void CChildFrame::OnSize(UINT nType, int cx, int cy)
CMDIChildWnd::OnSize(nType, cx, cy);
int XBorder = GetSystemMetrics(SM_CXMAXIMIZED);
int YBorder = GetSystemMetrics(SM_CYMAXIMIZED);
Can someone clarify me the following question - unfortunately I cannot understand it from MSDN docs. There are several messaging libraries in Windows - see http://msdn.microsoft.com/en-us/library/ee663283(VS.85).aspx. The question is: can some of them be used to the following task: to read mails from POP3 mailbox on ANY (not only Microsoft Exchange Server) mail server? For instance, I see on http://msdn.microsoft.com/en-us/library/ms710599(VS.85).aspx description of some IPOP3Transport interface, but with remark 'Do not use'. "http://msdn.microsoft.com/en-us/library/ms709613(VS.85).aspx" says "New applications should not use this set of interfaces and schemas. These interfaces and schemas exist for backward compatibility with legacy applications".
So, this "Windows Mail" is obsolete and should not be used anymore? I am confused. Can someone explain me?
Personally I keep far away from 'MS solutions' for just the reasons you described. What i did (years ago) open a socket and read the mail. The Pop3 protocol is really simple.. Next, you will get your emails as files and you have to get bodies and attachments out. Pop3 and the email format is described and available on internet, open for us all.
Besides of some nasty 'ms-enhancements' in the email adresses, email is pretty standard.
I read the pages you provided: forget it they are just wrappers around the real thing. If you do not want to follow my advice above use the mail-classes of your programming language, they should be reasonably standard.
At one place in my code i need to run IOCTL_DISK_DELETE_DRIVE_LAYOUT, that execute smoothly. This IOCTL code make the disk signature as zero so it can not be initialize.
I need to initialize this disk using code. Is there any API or any function that can initialize the disk?
Please suggest me some way to initialize it using c++ code.
Calling GetBuffer is not a good solution in this case, even if you call ReleaseBuffer afterward. There's no need to use GetBuffer because CString already defines casting operators (which returns the same type of what GetBuffer returns, so it depends on the UNICODE settings). Using GetBuffer is very bad practice and should be avoided.
You are writing a UNICODE string to the file. Each AppendChar() converts the character to a UNICODE character and appends it to the string. During your write, you'll also note that only half the string is being written. (CString::GetLength() returns the number of characters, not the number of bytes.)