Search:
Type: Posts; User: endemoniada
Search:
Search took 0.04 seconds.
-
August 4th, 2020, 04:38 PM
Hi guys,
I want to copy a file to the clipboard but I'm not sure what data to pass to SetClipboardData(). The input would be the full path of the file I want on the clipboard so that I can later...
-
February 18th, 2015, 04:15 PM
It's a hardware issue:
http://www.sjbaker.org/wiki/index.php?title=Keyboards_Are_Evil
-
February 16th, 2015, 09:38 PM
SetTimer(inst->hwnd,KeyBoardTimer,150,NULL); : you set KeyBoardTimer = 0 so that is bad.
I don't think the HWND in WM_CREATE is valid yet so try the HandleWindow from WndProcForm:...
-
February 16th, 2015, 06:32 PM
Hi guys,
If I hold down *both* the 'W' and 'S' keys I no longer get WM_KEYDOWN messages for other keys. Here is my handler:
if (wParam == 0x57) // 'W'
move_forward = 1;
else if (wParam...
-
November 28th, 2014, 05:15 PM
Hi guys, if I do this everything works fine:
char* strings[]={"Zorro", "Alex", "Celine", "Bill", "Forest", "Dexter"};
qsort(strings, 6, sizeof(char*), cmp_func);
However, I like to...
-
November 11th, 2014, 01:28 AM
Hi guys,
When I call GetOpenFileName() it opens in the top-left corner for a split-second before appearing in the center of the screen.
I tried different parameters for OPENFILENAME.hwndOwner...
-
November 10th, 2014, 04:07 PM
You guys are right, it's better to go with a filename array. It was pretty easy to implement and it's working great.
Thanks.
-
November 10th, 2014, 12:35 PM
Hi guys, I'm using FindFirstFile() and FindNextFile() to go through all the files in a directory, I want to be able to go backwards and also loop at the beginning and end, like this:
001.txt...
-
April 16th, 2014, 07:34 PM
It's working like a charm now. You guys are so smart, thanks a lot.
-
April 16th, 2014, 02:58 PM
Thanks for trying to help, here is a mini-program:
void OnInput(LPARAM lParam)
{
UINT dwSize;
GetRawInputData((HRAWINPUT)lParam,RID_INPUT,NULL,&dwSize,sizeof(RAWINPUTHEADER));
-
April 16th, 2014, 11:08 AM
Hi guys,
I'm not getting the response I expect from WM_INPUT detecting the arrow keys:
#define key_right 0x27
USHORT key=raw->data.keyboard.VKey;
-
September 5th, 2013, 04:57 PM
Hi guys,
If I get a bitmap from the clipboard with:
hBitmap=(HBITMAP)GetClipboardData(CF_BITMAP);
...how do I get the width and height ? Can I get at the BITMAPINFO ?
Thanks.
-
Hi guys, is it possible to clip a child window. Let's say my child window is 400x400 pixels but I only want to show (say) the top left 100x100 pixels. I know I can just resize it but it's a Direct3D...
-
February 25th, 2013, 01:00 AM
It seems like the more I think about thread synchronization the more I think just about everything needs to be protected.
I have a custom window (made with CreateWindow) that I use like a...
-
February 24th, 2013, 06:53 PM
Hi guys, I can't stop my thread:
void MyClass:start()
DWORD dwThread;
thread_flag=1;
hThread=CreateThread(NULL,0,startThread,(LPVOID)this,0,&dwThread);
}
-
February 20th, 2013, 06:02 PM
Hi guys,
I got as far as getting a web page into an IHTMLDocument2 but I don't know what to do from there, all the examples I found are C# or .NET or something else I don't understand.
Will...
-
February 18th, 2013, 11:03 PM
1) Exactly that, I don't want to write it to disk unless the width or height is a minimum of (say) 512 pixels.
I'm not using a library because I planned on just writing the block of memory to...
-
February 18th, 2013, 10:10 PM
Hi guys,
I have a JPEG in memory as a char* and a bytesize, if I save it to disk with a .jpg extension it's a perfect JPEG file. The thing is, I don't want to save it unless it's a minimum...
-
December 5th, 2011, 01:10 PM
Hi guys,
I noticed that my DIBs, both saved and copied to the clipboard, are 2 bytes short.
DWORD dwSize=sizeof(BITMAPINFO)+height*span;
HGLOBAL hGlobal=GlobalAlloc(GMEM_MOVEABLE,dwSize);...
-
September 7th, 2011, 04:13 PM
I would get a warning such as: "conversion from double to float, possible loos of data". I don't get that in VS2010.
Yes, you are correct. The warnings were under Link so they wouldn't show up...
-
September 7th, 2011, 01:26 PM
Hello, using VS2010 I am not getting the compilation warnings I used to get with VS2008.
For example:
float x=1.0;
...would cause a warning in VS2008 because I didn't append an 'f' like so:...
-
April 1st, 2011, 10:29 AM
Hi guys,
I'm doing something like this:
WM_CREATE:
if(!initialize()){
// fatal error
// MessageBox(...);
// here I should terminate the program
}
|
Click Here to Expand Forum to Full Width
|