Thanks for all of your help!! I looked again for the GetWindowLong() and SetWindowLong() posts on the board, and I found an example with code of what I needed to do!
DefEditProc =...
Type: Posts; User: Terrell
Thanks for all of your help!! I looked again for the GetWindowLong() and SetWindowLong() posts on the board, and I found an example with code of what I needed to do!
DefEditProc =...
I change the size of my window in WM_SIZE, that way if the user resizes the window, the entire window will be resized as well.
When I check for WM_KEYDOWN or WM_CHAR in the main message loop,...
I tried that, and I didn't really want to use MFC. The little wizard thingy I dont really like, I want to have complete control over my code. I cannot stand generated code.
I tried to subclass the edit control, and i can't even get my edit control to appear on the screen. I was just trying the minimum to see how it would work, and it just doesnt seem to work. What am...
Below is my main message loop. I have created an Edit window as a child window of the main window. All I want to do is to be able to catch the keystrokes of the edit window (child window), but I...
Hello all,
I am wanting how to learn to be able to send output to the printer via my program. The output would be mostly text, with a posiblility of a graphic (i have not decided on the...
I got it....i was doing some reading on here and I came across a post that had some code that worked for what I needed.
I just used GetMenu(HWND) to get a HMENU handle to the menu I need. Thanks...
I have a quick question concerning Menus. I have a small app that uses pull-down menus, and I ned to be able to "turn off" or grey out the menu items that I dont want a user to have. I am trying to...
I do not have a need for an array of character arrays, I just needed to put some text inside of an existing char buf[12]. the strcopy(object.buf, "text here") worked great for my problem though! ...
I forgot to say this. The char array is part of a class and it doesnt get modified until after a variable of that class hase been defined. Then, thought the rest of the program that char array will...
Could somebody please help me, I am having a total brain fart.
I have a variable named: char buff[20];
I need to put strings into that char array, but I cannot just stuff a string into it, or...
Thanks for your suggestions. I just started reading through more header files, and there is a header file call ios.h, so I just included that, and my errors went away. Evidentally the documentation...
Hello,
I am writing a small app that checks for the existence of some files. The problem is that when I create the stream, and associate a file with the stream, the fille will be created if...
Thanks zen!! I didnt realized that it needed that sizeof(struct) it works now. Would I do the same thing for a Save As dialog box? I am assuming so
- Brice
I have tried to initialize the struct, but I am not sure if I have everything in there that I need. Here is my struct
test.hwndOwner = NULL;
test.lpstrFilter = "All Files (*.*)\0*.*\0";...
I am trying to write an app that will allow the user to open up a file and load it into my program. The file that will be loaded will probably be just a standard .txt file.
I would like to use...