Type: Posts; User: VladimirF
Search took 0.13 seconds.
I am with OReubens on that: don't use MessageBox() function if you need customization. Just create your own DialogBox and make it as flexible as you need.
There is only one feature of the MessageBox...
July 31st, 2015, 03:37 PM
What flags are you asking about? Could you please explain?
July 31st, 2015, 02:06 PM
I can say that the STATIC child control is not yet created. Are you calling that from your HCBT_CREATEWND? If yes - it is too early. Try HCBT_ACTIVATE.
July 31st, 2015, 11:12 AM
Try DebugView at http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
July 31st, 2015, 10:38 AM
1. Your test is strange: you are trying to create a MessageBox form the hook set on creation of message boxes; looks like infinite recursion.
2. Because of #1 and multiple other reasons, NEVER use...
July 31st, 2015, 08:04 AM
What do you mean by that:
Isn't it a contradiction?
July 30th, 2015, 09:38 AM
SUB is 0x1A, or Ctrl+Z, which sometimes is used as an end-of-file mark.
However, since you open your file as std::ifstream::binary, that should not matter.
Are you sure that your string is...
July 29th, 2015, 02:54 PM
Do you want to NOT count caption and border of the parent window? Then use GetClientRect() instead of GetWindowRect().
Please note: client rectangle is always in client's coordinates.
July 29th, 2015, 10:48 AM
Apparently, the problem is in writing/reading the encrypted string to a file.
What is filewrite()? And is there fileread()?
July 24th, 2015, 03:49 PM
What is counter_Child6++? Where is it defined? How is it initialized?
Did you debug your EnumChildProc2() function? Is it called? How many times? Looks like counter_Child6 is never equal to 6......
July 24th, 2015, 03:37 PM
...unless you call it from the class that is derived from CWnd. In that case, you would need to specify global scope to get the HWND version:
HWND hWnd = ::FindWindow(_T("#32770"), _T("Unable to...
July 24th, 2015, 09:03 AM
July 24th, 2015, 09:02 AM
That's cool, but I wonder if it will be any faster than my last posted code.
This example does pretty much the same thing, but it manipulates region data directly.
July 24th, 2015, 08:48 AM
Oops... I incorrectly used SetRectRgn() function by passing the width of the rectangle instead of its right coordinate.
Here is corrected code:
DWORD p = 0;
int xStart = 0;
July 24th, 2015, 07:52 AM
I might have missed something.
Could you please upload your zipped test project (without Debug/Release folders) here?
What bitmap do you pass to function HRGN RegionbyBitmap(HBITMAP...
July 23rd, 2015, 04:32 PM
This is JPEG (compressed).
Do you have the original BMP image? And what color is used to convert to transparent?
July 23rd, 2015, 04:08 PM
Could you please attach the original bitmap you are trying to convert?
July 23rd, 2015, 03:49 PM
Try this in place of your scanning code:
// scan the bitmap
July 23rd, 2015, 10:23 AM
See my post #7 above; not the rocket science.
July 23rd, 2015, 10:18 AM
Did you profile your code? Do you know which part takes most of the time? Is it Get24BitPixels() or RegionbyBitmap()?
Do you have a lot of transparent pixels in your bitmap?
I assume that most of...
July 23rd, 2015, 08:55 AM
I think I understand you (after all, we share cultural roots).
There are two solution to a generalized problem:
If you perform action A, the feature B doesn't work correctly.
1. Fix feature B.
July 22nd, 2015, 09:01 AM
That's non how I read it:
"I want to know is there any way to change the alignment of this checkbox style first column(with no text) so that it becomes center aligned and aligns according to the...
July 21st, 2015, 11:26 AM
July 21st, 2015, 10:00 AM
Hint: you can't set the column 0 to center-align, but you can set the column 1 to be positioned first.
July 20th, 2015, 11:33 AM
1. CHOOSEFONT is a structure, NOT a pointer.
2. You need to check the return value from ChooseFont(&cf). If it is 0 (FALSE), you should call CommDlgExtendedError(); to see what was wrong.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!