I have a couple list boxes in my user setup dialog box. I want to fill those with possible options. acorrding to my book I do that by sending a LB_ADDSTRING to the listbox child window control. I am...
Type: Posts; User: vrek
I have a couple list boxes in my user setup dialog box. I want to fill those with possible options. acorrding to my book I do that by sending a LB_ADDSTRING to the listbox child window control. I am...
I got it fixed. The problem was I was not storing the variable for the two window handles as global variables so each time I was trying to run it it was seeing the windows as un ititialized.
How would you go about doing that?
ok, I created the windows in WM_CREATE and then used ShowWindow(UserWnd, SW_SHOWNORMAL); to display it but I am still having the same exact problems. Any other ideas of what could be wrong?
Ok, I had it working but then I came up with the idea of have multiple views in my program(basically an opening screen just displaying a image, and two listViews). In order to do that with...
Oh sorry. must of missed that.
It all works wonderfully execpt for one thing...It will not display properly untill I click on the window. If I do anything to the window to make it redraw(resize,...
Thank you. That is exactly what I wanted!!
I just have one small question. Is there anyway to make it so that the columns are boxed in? Similar to how excel has it where there is a gray or black...
I'm not trying to make Icon bar(to be honest I don't think I have enough functions in my program to need a icon bar). Basically I am making a spreadsheet/table(not directly modifiable by the user)....
I am trying to draw a series of rectangles to use as column headers(as well as eventually list tables full of data below it. I have a sorta primitive solution that should work as far as I can tell...
Ok, I have a possible solution if i understand the question right. How about creating a second compantible DC that you draw on when you want and then on release of the mouse button do a bitblt from...
Why is it that I add in a piece of code in its own files sometimes I end up with HUNDREDS of errors throughout all the code. It ranges from connected code to completely un related code sections. For...
If it was me I would completely change your math code. I would put all 25 numbers into an array. Put them through a sorting algorithm(I would probaly use bubble sort, look on this site for a...
Alot of my program is dialog based. I have multiple property pages and 3 different wizrds. I was watching the memory usage via Task Manager and noticed that while my program only uses about 2000K on...
I ended up taking the easy way out and using this: Splash Screen Class
It does everything I wanted and worked perfectly out of the box.
Well all of my code is attached in the file I posted earlier but is my WM_PAINT message.
case WM_PAINT:
RECT rt;
HFONT hfont;
int y,iOffset;
POINT pt[4];
Depends on your compiler as to the exact placement of the option. Just look around the options and you should see something like "Use UniCode: TRUE" or something to that effect.
you are working in unicode. Change that and it should work.
Using the normal method of displaying bitmaps I need the size of the window I am copying to but I only want the image centered in the the middle of the screen. How can I do this?
I found a sorta fix. It is only drawing after I make it call a WM_SIZE message(through changing the size of the window). Is there any way I can request a WM_SIZE message? I thought about SendMessage...
IDM_NEWPARTY is a menu item. Yes I did do that and still got a blank screen.
I got it working, now onto the next problem, trying to draw them with FrameRect gives me a blank screen.
FrameRect(hdc, &MyLabels.name,(HBRUSH)GetStockObject(BLACK_BRUSH));
That is one...
I would put that in WinMain right before CreateWindow correct?
So I should do something like this:
struct labels{RECT; RECT; RECT; RECT; RECT; RECT; RECT;};
labels MyLabels(RECT name, RECT height, RECT weight, RECT drug1, RECT drug2,RECT drug3, RECT...
My program is getting rather large and it it has to itialize alot in WM_CREATE(it includes a database it has to get info from and different fonts to make). I want to create a splash screen to show...
I am trying to have a structure of RECTs to hold all the labels at the top of my screen. The declarations does nto give me any errors or anything but when I try to initialize the rectangles I get...