He's not my friend - he was just potential customer and I hope it stays that way. Who needs friends with custom window managers?!
Good idea! Maybe this weekend if I find some extra time.
...
Type: Posts; User: Delf
He's not my friend - he was just potential customer and I hope it stays that way. Who needs friends with custom window managers?!
Good idea! Maybe this weekend if I find some extra time.
...
Hi,
in my code I handle WM_SIZING, I carefully supply correct values in WM_GETMINMAXINFO and in the end I double-check everything in WM_WINDOWPOSCHANGED and WM_SIZE for final corrections, and it...
Try this:
SendMessage(hStatus, SB_SETPARTS, 2, (LPARAM) statwidths);
This should work, I hope.
Try this one:
int CopyAllFiles (
char *wildStr,
char *srcPath,
char *dstPath
)
{
HANDLE hf;
Yesterday I uploaded latest version of my app to my web server and then downloaded it to my notebook. It crashed before splash screen with stack overflow or some message like that.
I went back to...
If everything else fails... yes, I can always go to registry and do what
it takes. I just wanted to see if there's a way to avoid it: Darg&Drop
install, non privileged users, etc.
Hi,
Is it possible to give some custom icon to a DLL.
So far, I have DllMain and resource (.rc) file with an icon, but
the icon is not used in Explorer for my dll.
At some moment, I changed...
Google like this: http://www.google.com/search?q=OleLoadPicture+LoadResource
You'll need AddFontMemResourceEx(), but it works only on 2K & XP.
Petzold, 5th edition, Chapter 13 - Using the Printer, Application - DevCaps2.
Amazing utility for exploring the printers and printing code in general.
And btw, DevCap2 told me that in fact my...
Yes,
and I wander now what GetFocus() returns when menu bar has a focus?!
Like, when I just press alt key without any other letter-key.
For a moment I had a feeling that I'm getting somewhere...
The problem is - well, there are two problems:
1. MSDN is wrong,
2. Disabled edit controls really do use WM_CTLCOLORSTATIC when...
Thanks for being patient with a stubborn person - ME!
I do handle WM_CTLCOLORSTATIC but it's like this:
LRESULT StdOnCtlColorStatic (HWND hwnd, WPARAM wParam, LPARAM lParam) // hwnd of real...
Are you sure? You mean disabled with EnableWindow(..., FALSE) ?
I do handle WM_CTLCOLORSTATIC and it doesn't affect disable controls.
In the CodeProject's article Quantrizi posted above there...
It would be WM_CTLCOLOREDIT & WM_CTLCOLORSTATIC.
Something like:
case WM_CTLCOLOREDIT:
SetTextColor (hdc, txtColor);
SetBkColor (hdc, bkColor);
Old version of Petzold had this example. I think it was 4th edition and if I
remember right, I have stumbled on source code of the Petzolds on the
Internet somewhere.
Seems like you'll need to do it by yourself. Or download WINE and build
something similar looking at their code. I always hated dialogs with
just Yes/No/OK etc. It is much better and safer for the...
This should help:
SIZE txtSize;
GetTextExtentPoint32 (hdc, theText, strlen(theText), &txtSize);
Then use txtSize.cx an txtSize.cy
Add something like this:
case WM_CHAR:
switch (wParam) {
case VK_RETURN:
return (0);
}
break;
Well why not. At least Wine code is doing it.
/* Get the text size */
GetClientRect(GetDlgItem(hwnd, MSGBOX_IDTEXT), &rect);
rect.top = rect.left = rect.bottom = 0;
...
None of variables has hwnd as part of it's name,
but, I suppose tp[FRM] is of type HWND?
What you are doing is Getting the Rect of a control,
and invalidating that area within control. Maybe you...
Since there are still no other replys, maybe I can help you at
least with some small hints.
Look at site of John Walker (AutoCad,...) and look there
for source code. It's www.fourmilab.ch.
He...