Type: Posts; User: kkez
Search took 0.16 seconds.
February 2nd, 2008, 05:59 AM
MessageBox(hWnd, TEXT("Line\n"), TEXT("Caption"), MB_OK);
Did you try
SetWindowLong(listView, GWL_STYLE, GetWindowLong(listView, GWL_STYLE) | LVS_NOCOLUMNHEADER);
Yes, if both lpstrFile and lpstrInitialDir are empty, the initial folder is the personal folder. Fill the lpstrInitialDir member to set the initial directory. To get your program's folder, see this...
The easier one: GetFileAttributes() == FILE_ATTRIBUTE_DIRECTORY.
Can you show a screenshot? Is the edit actually a richedit?
April 20th, 2007, 02:37 PM
The lpstrDefExt member of the OPENFILENAME structure gives you the ability to append an extension if the user doesn't type one.
March 25th, 2007, 08:34 AM
Use "MYRES" (a string, literally) instead of RT_BITMAP. IMHO RT_BITMAP is just a #define for "BITMAP".
March 22nd, 2007, 04:44 AM
Yes i did, and still one thread.
Are you on windows xp?
March 21st, 2007, 04:29 PM
I modified the source to let mingw compile it, here's the source and the executable. The resulting exe has only one thread as TaskManager reports.
As for the coding style, there's just a little...
March 20th, 2007, 05:44 PM
WindowProcedure is called MANY times, and each time the bmpExercising variable is created and not initialized. So what actually happen is that you load the image with LoadImage, but then the handle...
March 20th, 2007, 05:41 PM
Is your project open-source? If yes, just send me the code and i'll try to see what's happening.
March 19th, 2007, 03:12 PM
In my experience, the WM_MEASUREITEM message is sent again when the text of all the items in the menu is changed.
Of course you can't access it, there's no HMENU member in the...
March 18th, 2007, 04:02 AM
I think you must do both things, but you can try...
Well, copying a pointer doesn't affect the efficiency or the speed of your software. And it's more readable, don't you think? :)
March 16th, 2007, 04:43 PM
Let's clarify then :)
The NM_CUSTOMDRAW notification is sent whenever (or less) the listview is redrawn. If you read the docs, you'll see that NM_CUSTOMDRAW doesn't ask you to draw anything,...
March 13th, 2007, 03:58 PM
March 13th, 2007, 03:53 PM
LRESULT ( CALLBACK* OldListCtrlWndProc )( HWND, UINT, WPARAM, LPARAM );
Although this may be correct, why don't you use WNDPROC as you did with SetWindowLong?
WNDPROC OldListCtrlWndProc = NULL
March 9th, 2007, 03:46 PM
How and where do you paint that margin? I would do this way:
handle WM_NCCALCSIZE and make some room in the left non-client area of the window for the margin
handle WM_NCPAINT and do the...
March 4th, 2007, 10:36 AM
Both DialogBox and CreateDialog are actually macros that calls respectively DialogBoxParam and CreateDialogParam. The additional parameter is passed along with the WM_INITDIALOG message in the lParam...
March 3rd, 2007, 10:37 AM
No, making the member function static wouldn't change anything, since they wouldn't have the this pointer too. And all the functions can be called from static functions, you just...
February 16th, 2007, 03:16 PM
I don't quite understand what you mean with "message behavior". You can send messages across threads or processes, and since notifications are sent through WM_NOTIFY, this applies to notifications...
February 15th, 2007, 01:20 PM
Please use [/code] at the end and [code] at the beginning of the code. It's impossible to read unformatted code.
February 15th, 2007, 01:15 PM
Practically speaking, notifications are the "messages" you get through the WM_NOTIFY message. In my experience, notifications are usually sent to the parent window when a child window receives a...
February 3rd, 2007, 04:35 AM
No problem. If you want, put a link to the page in the "credits".
February 2nd, 2007, 01:39 PM
Sorry for the late answer.
1) Yes, i just corrected the code.
2) the second argument depends on how you include the file in the .rc file. FindResource requires the data type - after all, even...
January 31st, 2007, 03:05 PM
Click Here to Expand Forum to Full Width