Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Oct 2006
Offline Last Active Jul 18 2014 01:46 AM

Topics I've Started

Auto scrolling to bottom of edit box?

18 July 2014 - 12:09 AM

Hi Guys,


I have a multiline edit box (non-MFC) in pure c++ and can display text happily in it.


But how do I make the edit box scroll automatically to the bottom of the text (once the edit box has filled up). At the moment I have to scroll manually.


This is my edit boxcreation code


strcpy(buffer,"Some text \r\n");


Any advice would be awesome :)

GPL licence question

08 July 2014 - 07:56 PM

Hi Guys,


With the GPL v3 licence, does the coder have to make thier own source code available for any application created using an API that is GPL licenced or do they only have to supply (or link to) the original source code of the API that they used?


This seems to be an extremely confusing area for me.


Thanks in advance. smile.png

Loading textures to the GPU

07 July 2014 - 11:52 PM

Hi guys!


Not really a problem, just a quick question. smile.png


When you load a texture (for example a JPG) on to the d3dDevice via CreateTextureFromFile() or similar, is the texture decompressed by the API and then sent to the video card, or is the image decompressed on the video card itself?


Thanks in advance biggrin.png

Full screen / windowed question

03 July 2014 - 12:54 AM

Hi Guys,

I see that DirectX 11 will automatically toggle between windowed and full screen mode by pressting Alt & Tab. Which is exactly what I want to do.

Is there a way to check if the application is currently windowed or full screen?

Thanks in advance smile.png

StretchRect() in DX11?

02 July 2014 - 11:42 PM

Hi Guys,

Previously when I used DX9c I used to draw to a surface of a preset size (usually screen dimensions 1600x900) and when I went into windowed mode I would simply draw the surface to the window using...

(FAILED(d3dDevice->StretchRect(surfaceApplication,NULL,surfaceBackbuffer,&DstRect,D3DTEXF_LINEAR )))

So, this way the scene would resize gracefully and I could still move objects as if they were still in full screen dimensions.

Is there a way to do similar in DirectX 11?

Thanks in advance smile.png