Oh my! Thanks for spotting that adeyblue! It always helps to have a second pair of eyes to look at the code! :D
Type: Posts; User: Eirik
Oh my! Thanks for spotting that adeyblue! It always helps to have a second pair of eyes to look at the code! :D
I did not explicitly select a pen into the DC, though I tried that now when you mentioned it, but still the same result. I am also drawing a gradient in the DC (the commented out function) but this...
Hi,
I have this code for drawing my custom control. I am going to do my drawing into an off-screen DC and then blit it to the screen DC. However, it won't work. If i pass the screen DC to the...
Seems like I have solved the registering problem. The solution was to statically link all dependencies into the control. It may not be the best thing to do, but at least it works.
Procedure, for...
Hi,
I have written an ActiveX control using MFC and I am having some trouble deploying it on an Industrial PC running Windows XP Embedded. When I run regsvr32 I get the error message...
Haha! I don't believe this! Thanks for pointing that out! I guess that's the way it is when I'm using multiple programming languages with different syntaxes. It gets confusing.. It also was very late...
Hi,
I'm trying to write an custom control and I'm experiencing some problems. I have a class Button, derived from a CustomControl class. In my button class I have defined message router function...
A quick explanation of what happens between GDI/DirectX/OpenGL/etc. and your graphics hardware:
At the lowest level you have the graphics hardware, which is basically a GPU capable of performing...
Hmm.. Arial is a TTF, right? If so, then yes. I have tried with the GetCharABCWidths() function too, but it didn't do any better. I'll try with the Unicode version, first.
Or am I running into a UNICODE vs ASCII problem here? (Yes, I am using ASCII, shame on me...)
Hi,
I am having trouble with GetCharWidth32() when I input a localized character like 'Ø' GetCharWith32() returns some redicilously large number. Also the character '¤' makes it go crazy. Is this...
So what you're saying is that the replacing of colors isn't doable, unless I am in 256 color mode? Is there any other techniques that may be applied to do what I am trying to achieve?
I wasn't...
Hi,
I am basically displaying a human-machine interface (various symbols on a tabbed, windows-like environment) on a display that is located in such an environment that it is important to minimize...
Hi,
Is there any sane way to programmatically alter the screen output? I am thinking along the lines of having a color table that I utilize for replacing a source color with a destination color in...
The Get/SetClassPointer are my functions, they are just wrapping Get/SetWindowLong.
What excactly will happen then? Will I recieve, say, a WM_ACTIVATE notification to my window if I activate the parent window?
Another obstacle I'm running into here is this:
I register my window...
Hmm.. I am creating it like this:
int APIENTRY MyWin(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow) {
WNDCLASSEX wcex;
HBRUSH hbrGray;
MSG msg;
hbrGray =...
Because if I don't, I will block the calling application until my window closes.
Hello,
I am having a bit of a headache trying to structure my program "the right way".
This is the case:
I am making a dynamic link library, containing some resources and functions that will...
You don't declare any types in the scope resolution for the command() function. Try this in stead:
void Blackjack::command(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
Oh, and also,...
I Just downloaded Dev-C++, but it doesn't seem to provide the library files. You will be needing those.
Anyway, for adding them, right click on your project in the tree menu at the left, and...
You need to include Gdi32.lib in your linker settings.
@Codeplug
Ah, you are absolutely right.. :-)
@grumpy
Yeah, I saved out the pointer value during WM_PAINT, to invesigate its value, and I found it to be 0x4. I'll do some (further) thorough investigation of my code and see if I can track...
Yeah, that was my thought too. I just couldn't figure out why it only happened during my WM_PAINT message.
I am setting it during the WM_NCCREATE message. Like this:
case...