Search:

Type: Posts; User: Dampy

Search: Search took 0.01 seconds.

  1. Ok, thanks. It works fine that way I do it, but...

    Ok, thanks.
    It works fine that way I do it, but it is probably not the best way to do it (hide and show the window every time something happens in the editbox)

    The best way would to look the...
  2. Ok thanks, but I don’t understand how to chance...

    Ok thanks, but I don’t understand how to chance the highlighting colors, or at least how to know that I am editing the highlighting-color?

    EDIT:
    Hum, I read in another forum that my way to do it...
  3. Transparent, Editbox, HOLLOW_BRUSH, Marking text?

    Hi
    I have a little problem when I am using "HOLLOW_BRUSH" as a background (?)
    I create a editbox and sets the readonly-flag, but the background goes grey and I want it white.
    To prevent that I use...
  4. Replies
    1
    Views
    1,540

    Set default font for all objects?

    Hi.

    How do I set a font type for all the objects I have created?
    Instead of sending this to all objects(buttons, labels, boxes…..):

    SendMessage(hwnd, WM_SETFONT,...
  5. Replies
    20
    Views
    18,417

    It´s very straight forward, I am trying to take a...

    It´s very straight forward, I am trying to take a screenshot of a running game using DX :P

    Yes, I have already achieved that, but the problem is that the functions are to slow so the screens get...
  6. Replies
    20
    Views
    18,417

    Thanks for the tip =P So, I can´t take a whole...

    Thanks for the tip =P

    So, I can´t take a whole “one frame” of a running game using dx?

    The only way to do that is to “lock” the game, and then screen it?
    And that is not possible on a game...
  7. Replies
    20
    Views
    18,417

    The code look like this now: ...

    The code look like this now:

    HRESULT InitD3D(HWND hwnd)
    {
    g_pD3D = Direct3DCreate9( D3D_SDK_VERSION );

    if( g_pD3D == NULL ) {
    MessageBox(NULL, "failure of Direct3DCreate9",...
  8. Replies
    20
    Views
    18,417

    Thanks for pointing me on the right way, now it´s...

    Thanks for pointing me on the right way, now it´s working like a glove =)

    But I have 3 miner issues I hopped if someone can point me to a solution:

    I am trying to take sceenshots in a game that...
  9. Replies
    20
    Views
    18,417

    Yes, you probably have right, but I donīt think...

    Yes, you probably have right, but I donīt think it is something to do with bad code. or?
    because I can start a program that looks like this:


    #include <d3d9.h>
    #include <d3dx9.h>
    #include...
  10. Replies
    20
    Views
    18,417

    Now I have installed the directX Dev-pack for...

    Now I have installed the directX Dev-pack for dev-c++, and the samples works fine and my program compiles as it should.
    But, when I try to start my program it crashes.

    When I debug it I get the...
  11. Replies
    20
    Views
    18,417

    Yes I tried to add all the libs to my project...

    Yes
    I tried to add all the libs to my project and i even tried to use the "unicode version", but I get the same error.

    This is one of the articles:...
  12. Replies
    20
    Views
    18,417

    I get the same error :/ "undefined reference to...

    I get the same error :/
    "undefined reference to `D3DXSaveTextureToFileA@16'"
  13. Replies
    20
    Views
    18,417

    But SurfaceLoader is a class/function in dx?...

    But SurfaceLoader is a class/function in dx?
    http://msdn.microsoft.com/en-us/library/bb296130(VS.85).aspx
    So, how do I define in?
  14. Replies
    20
    Views
    18,417

    Take screenshot with directX?

    Hi, I am trying to take a screenshot using directX.
    I have tried to compile some samples and read some articles but I can&#180;t get it to work.

    The problem is the 2 functions that saves the surface...
  15. WinAPI: Editbox + WM_CTLCOLORSTATIC sets bigger border?

    EDIT:
    I think I have found a way to do it now, de first time I did it wrong ^^
    I hope someone can confirm that I am doing it right now:

    I set this to be global:

    HBRUSH g_hbrBackground =...
  16. Replies
    2
    Views
    1,069

    Ha, thx I have tried \r and \n but not...

    Ha, thx

    I have tried \r and \n but not together :) Thx anyway!
  17. Replies
    2
    Views
    1,069

    Line brake in ReadOnlyBox?

    Hi
    I wonder how I do a linebrake/enter in a readbox

    My problem is that when i paste this:
    line1\nline2

    It gives me:
    Line1Line2

    How do I get rid of the ->  ?
  18. Replies
    2
    Views
    986

    List, selected text to string?

    Hi
    I wonder how I set “cout<< list.getText(list.selectedItemIndex);" to get the string with that name instead of only paste the name that is selected.

    Letīs say I select “FIRE" in the list, and...
Results 1 to 18 of 18