You could have a look at PathCleanupSpec, but you can only be sure you can create a file by creating it (you may not have permission, a network drive may be offline, etc).
Type: Posts; User: anonytmouse
You could have a look at PathCleanupSpec, but you can only be sure you can create a file by creating it (you may not have permission, a network drive may be offline, etc).
Just to add some confusion, another option is to call the command interpreter with CreateProcess.
I don't think you should do any redrawing until all the controls are moved. Use MoveWindow with FALSE as the last argument and only call UpdateWindow at the end (you can probably even avoid using...
void GetChildPos(HWND hwndParent, HWND hwndChild, RECT* prc)
{
GetWindowRect(hwndChild, prc);
ScreenToClient(hwndParent, (POINT*) &prc->left)
ScreenToClient(hwndParent, (POINT*)...
A LOGFONT can be obtained from an HFONT using GetObject.
The font should be set in WM_INITDIALOG.
ScreenToClient
Another thing to consider is that Get[Save/Open]FileName are re-entrant. Your window procedure(s) will continue to be called while waiting for them to return. Consider what will happen if you are...
>> is this the standard solution for this task? <<
No, WM_GETMINMAXINFO is.
Typically, client controls are resized/positioned in response to a WM_SIZE message.
HTML Applications are another way to implement Fordy's solution.
Or you can use fgets as suggested by Daved:
bool LoadListbox(char* sFileName, HWND hWndDlg, int controlID)
{
char sLine[1024];
FILE* hFile;
hFile = fopen(sFileName, "r");
It is the C library functions that do character translation before writing to the OS stdout handle.
You can change stdout to use binary mode to avoid character translation.
...
SetFileTime
Try using NULL for the taskbar handle.
WS_HSCROLL and/or WS_VSCROLL
You need to copy the address as well as the address type:
hp = gethostbyname(abc);
sa.sin_family = hp->h_addrtype;
memcpy(&sa.sin_addr, hp->h_addr, sizeof(sa.sin_addr));
...
I think you want to check the foreground window rather than the focus, something like the following:
HWND hForegnd;
DWORD pidWindow;
hForegnd = GetForegroundWindow();...
A couple of links:
http://www.codeproject.com/shell/shellcontextmenu.asp
http://www.google.com/search?q=site%3Ablogs.msdn.com+old+new+thing+icontextmenu
I haven't read all the posts but are you talking about that guy who got into trouble for exposing the super secret military space-plane, and then got pardoned by the president at the last minute? I...
A couple of links:
http://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=2931
http://www.google.com/search?q=xdelta
You can probably still use SHGetFileInfo. Something like this:
LPITEMIDLIST pidl = NULL;
/* Get the pidl for My Computer. See function documentation for other CSIDLs. */...
>> Also, while im polling the folders, is it possible to only grab files that are not hidden or system folders/files? <<
Use GetFileAttributes.
>> Thanks all for the help, I am currently...
A control doesn't send a message, code sends a message. If you have a look at the SendMessage function, you'll note that there is no from argument.
GetStockObject to get an HFONT.
GetObject to get a LOGFONT from the HFONT.
Change the underline setting
Create a new font using CreateFontIndirect.
1. Get the process id for your target process.
This can be done by enumerating through all the processes on the system with Process32First.
2. Enumerate all the top level windows.
This can be...
If you call InternetOpen with INTERNET_OPEN_TYPE_PRECONFIG, WinINet will use these values, as explained in 'setting access types'.
You can set the proxy username and password using...