Search:

Type: Posts; User: Eirik

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,618

    Oh my! Thanks for spotting that adeyblue! It...

    Oh my! Thanks for spotting that adeyblue! It always helps to have a second pair of eyes to look at the code! :D
  2. Replies
    5
    Views
    1,618

    I did not explicitly select a pen into the DC,...

    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...
  3. Replies
    5
    Views
    1,618

    Cannot paint into offscreen DC

    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...
  4. Seems like I have solved the registering problem....

    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...
  5. Deploying an MFC ActiveX component on WinXP Embedded

    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...
  6. Replies
    2
    Views
    1,426

    Haha! I don't believe this! Thanks for pointing...

    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...
  7. Replies
    2
    Views
    1,426

    Crash during WM_NCCREATE

    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...
  8. Replies
    3
    Views
    1,486

    A quick explanation of what happens between...

    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...
  9. Hmm.. Arial is a TTF, right? If so, then yes. I...

    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.
  10. Or am I running into a UNICODE vs ASCII problem...

    Or am I running into a UNICODE vs ASCII problem here? (Yes, I am using ASCII, shame on me...)
  11. GetCharWidth32() - does not support localized characters?

    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...
  12. Replies
    4
    Views
    3,426

    So what you're saying is that the replacing of...

    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...
  13. Replies
    4
    Views
    3,426

    Hi, I am basically displaying a human-machine...

    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...
  14. Replies
    4
    Views
    3,426

    Real time altering of screen output

    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...
  15. Thread: C++ confusion

    by Eirik
    Replies
    14
    Views
    2,925

    The Get/SetClassPointer are my functions, they...

    The Get/SetClassPointer are my functions, they are just wrapping Get/SetWindowLong.
  16. Thread: C++ confusion

    by Eirik
    Replies
    14
    Views
    2,925

    What excactly will happen then? Will I recieve,...

    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...
  17. Thread: C++ confusion

    by Eirik
    Replies
    14
    Views
    2,925

    Hmm.. I am creating it like this: int...

    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 =...
  18. Thread: C++ confusion

    by Eirik
    Replies
    14
    Views
    2,925

    Because if I don't, I will block the calling...

    Because if I don't, I will block the calling application until my window closes.
  19. Thread: C++ confusion

    by Eirik
    Replies
    14
    Views
    2,925

    Multiple instances of classes, and passing pointers around, multithreading

    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...
  20. Replies
    4
    Views
    3,045

    You don't declare any types in the scope...

    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,...
  21. Replies
    4
    Views
    9,919

    I Just downloaded Dev-C++, but it doesn't seem to...

    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...
  22. Replies
    4
    Views
    9,919

    You need to include Gdi32.lib in your linker...

    You need to include Gdi32.lib in your linker settings.
  23. Replies
    7
    Views
    2,775

    @Codeplug Ah, you are absolutely right.. :-)

    @Codeplug

    Ah, you are absolutely right.. :-)
  24. Replies
    7
    Views
    2,775

    @grumpy Yeah, I saved out the pointer...

    @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...
  25. Replies
    7
    Views
    2,775

    Yeah, that was my thought too. I just couldn't...

    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...
Results 1 to 25 of 34
Page 1 of 2 1 2