I have never used the HMENU parameter in CreateWindow() or CreateWindowEx(), what exactly is it for?Is this necessary for just comboboxes since it works without it on other controls such as edit or...
Type: Posts; User: Elyubarov
I have never used the HMENU parameter in CreateWindow() or CreateWindowEx(), what exactly is it for?Is this necessary for just comboboxes since it works without it on other controls such as edit or...
Maybe you should specify add WS_CHILD(speciefies it is a child window to hwnd) and WS_VISIBLE(specifies it is visible) to the style parameter. I have never worked with combobox specifically but thats...
What do you mean by "different styles"? You can do owner drawn and make the button a bitmap if that is what you mean. msdn has a pretty good tutorial for owner drawn on that page. Maybe you are...
This keeps freezing, what am I doing wrong?
COLORREF cr;
CHOOSECOLOR cc;
cr = RGB(0,0,0);
memset(&cc, 0, sizeof(cc));
cc.hwndOwner = hwnd;
cc.lStructSize = sizeof(cc);...
maybe this is unrelated to a CheckMenuItem() problem but why doesnt this work?
case WM_CLOSE:
if(GetFocus() == hwndtreeparent){
HMENU hMenu;
hMenu = GetMenu(hwnd);...
What do you do when you specify the MF_BYPOSITION flag?I am not really sure where to use MF_BYCOMMAND or MF_BYPOSITION like MF_BYCOMMAND sometimes works and I just used the menu identifier for the...
Is there a easy way to associate a file extension with an application?
The only way I can think of doing it is exporting a .reg file with your program and using ShellExecute(), this is a horrible...
Heh, thanks that worked.
Is there a simple message to send a menu(from resource) to see if the menu item is checked?
Thanks alot, it works.
There is no DefWindowProc for WM_COMMAND..
Heh, now the problem is half solved. That seemed to work except now when I maximize the child window inside the mdi I see the three buttons for the childwindow in the mdi bar but I cant click them....
Here is the full source to what I am writing, perhaps you can figure out the problem:
Source
That like didnt help at all, its a problem with my mdi workspace, not WM_SIZE or WM_CLOSE..
I am working with a mdi workspace. Usually in other programs like if you maximize a window there is the 3 buttons for the parent window like maximize, minimize and close then there is a smaller one...
Thank you very much, I am new to linked list, forgot to allocate memory for it.
I am making a linked list with this struct:
typedef struct _item{
int index;
HWND hParent;
HWND hChild;
char * Name;
struct _item * next;
} item, *pitem;
go to task manager then processes and you can see the memory usage
there is no documentation, I making a client for a program, I packet sniffed. Anyways, the string was always there its just when i put it in a MessageBox() the MessageBox didnt read past the...
I want it to not terminate....
'\0' terminates the string.
still when i have something and do something[5] = ' ', the hex of " " is 0x20 not 0x00
I have char something[50]; then
char something[0] = 'a';
and i get : error C2466: cannot allocate an array of constant size 0 and
error C2075: 'something' : array initialization needs curly...
Stop confusing me, what should i use? :'(
uhmm can you give me an example, i dont understand what your getting at if i try:
char something[0] = "a";
char something[1] = "b";
I get a redefinition error.