Type: Posts; User: Cambalinho
Search took 0.06 seconds.
September 17th, 2014, 04:04 PM
form a;//the form is created and showed
button g,b;//the buttons are created and showed
September 17th, 2014, 03:38 PM
i did these test:
hdcimage = CreateCompatibleDC(NULL);
hicon = (HICON)LoadImage(NULL,...
September 16th, 2014, 05:15 PM
sorry i used both and i don't get the icon.
heres the class image:
September 16th, 2014, 04:33 PM
i'm trying load and draw an icon with a memory DC... but i'm not getting results :(
September 12th, 2014, 03:41 AM
just test yourself:
1 - put the form transparent;
2 - now maximize the form;
3 - can you click:
- on close button?('X');
- on icon menu?;
- and the...
September 11th, 2014, 12:24 PM
for finish, i have 1 question: why, when i maximizate the form, i lose the caption bar and borders actions?(like resize the caption menu and that 3 buttons on form)
September 11th, 2014, 11:36 AM
now i found the error:
September 11th, 2014, 11:29 AM
before i could change the backcolor with these code:
now i only recive the black color and not red\green :(
September 11th, 2014, 11:20 AM
now i understand why, when i create the form with WS_EX_LAYERED, i get the form invisible ;)
by defauld, the opacy is '0'(zero).. so i did these:
hwnd = CreateWindowEx(WS_EX_APPWINDOW |...
September 11th, 2014, 10:22 AM
true.. thanks for correct me:
hwnd = CreateWindowEx(WS_EX_OVERLAPPEDWINDOW, classname, strCaption.c_str(), WS_OVERLAPPEDWINDOW|CS_HREDRAW | CS_VREDRAW,
September 10th, 2014, 11:14 AM
i'm trying do a sample:
using namespace std;
typedef std::function<void(void)> OnSomethingHandler;
September 9th, 2014, 10:47 AM
now imagine that i want change the lambda value in Global Scope section(outside of functions\class's\others)?
September 9th, 2014, 03:39 AM
i continue with problems for make the form transparent :(
see these code:
SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
September 9th, 2014, 03:29 AM
see these sample:
using namespace std;
August 22nd, 2014, 12:39 PM
i need more advices:
1 - how can i change these loop for detect the joystick by ID?
August 12th, 2014, 06:54 AM
heres how you can change the control position without change the control size:
SetWindowPos(hwnd, 0,intLeft, intTop, 0, 0,
August 3rd, 2014, 04:28 PM
now i found what i was looking for: Joystick Layout ;)
isn't a complete layout.. maybe i can find more about the others ;)
but i need ask 1 thing from image and what i used from joystick:
August 2nd, 2014, 06:00 PM
thanks to both.. i had tested the dwYpos and dwXpos, but i can't test the others :(
maybe because my joystick don't have them. but see what MSDN says:
dwZpos Current Z-coordinate.
August 1st, 2014, 04:33 PM
the type is DWORD and that values was found with a VB6 code. but if isn't right, please tell me.
i use that line for see the joystick directions...
the MSDN is limited:
August 1st, 2014, 03:37 PM
see what i'm doing with joystick:
August 1st, 2014, 01:14 PM
i did these:
August 1st, 2014, 01:08 PM
sorry, but can i do something like these:
if(buttons==(JOY_BUTTON1 | JOY_BUTTON2))
i mean convert the b.dwButtons to buttons
August 1st, 2014, 01:01 PM
August 1st, 2014, 12:44 PM
works fine thanks.... i'm sorry, but that line can be simplificated?
August 1st, 2014, 11:10 AM
sorry... you have right... the JOYINFOEX.dwButtons it's a bit buttons ;)
let me ask: how can i combine the buttons?
if(b.dwButtons==JOY_BUTTON1 & JOY_BUTTON2)
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.