-
Began Watching C\C++11 - image class
i'm buiding an image class, but i need some information... the C\C++ teach how read binary\text files... but not how the files are build like JPEG, PNG, GIF and others … -
Replied To a Post in [win32] - about joystick
sorry but i'm confused with 1 thing:my brother have 1 joystick more or less like that layout. but the hat control and the X,Y do the same actions... is these … -
Created [win32] - about joystick
i'm trying to understand some joystick structure: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757112%28v=vs.85%29.aspx but isn't easy. at least these image help me more(joystick layout): https://onedrive.live.com/?cid=C3EF456E15C8DEB6&id=C3EF456E15C8DEB6!1259&v=3 but i need ask more: 1 - the Hat and … -
Began Watching [win32] - about joystick
i'm trying to understand some joystick structure: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757112%28v=vs.85%29.aspx but isn't easy. at least these image help me more(joystick layout): https://onedrive.live.com/?cid=C3EF456E15C8DEB6&id=C3EF456E15C8DEB6!1259&v=3 but i need ask more: 1 - the Hat and … -
Marked Solved Status for [win32] - super subclass: how connect the form to window procedure
i'm creating the form class. the form us showed and the window procedure works. the problem is that some messages(like WM_CREATE) aren't working. so how can i connect, correctly the … -
Replied To a Post in [win32] - super subclass: how connect the form to window procedure
in form WM_COMMAND message i must do: SendMessage((HWND)lParam , WM_COMMAND, wParam, lParam); and now works fine ;) thanks readers: if some message don't works, see how you did the Message … -
Marked Solved Status for [C++11-win32] - combination of keys
i'm build a function for do the combination of keys(like the kombat games: we do some combination keys for do an actions): bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed; … -
Replied To a Post in [C++11-win32] - combination of keys
heres the code more cool and working: //test if a key\combination keys is pressed bool AreAllKeysPressed(const std::vector<int> &keys) { int state = 0x8000; for (int key : keys) { state … -
Marked Solved Status for [C++ 11] - my own properties code
i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but … -
Revoked Solved Status for [C++ 11] - my own properties code
i'm build a completed new code for properties: #include <iostream> #include <functional> using namespace std; template <typename T> class property { private: T PropertyValue; //i think these is ok, but … -
Replied To a Post in [C++ 11] - my own properties code
i'm testing my property class for accept lambdas too: /*properties - how use create 1 property with macro: PROPERTY(TypeName,PropertyName,getfunction, setfunction) - never forget to do 1 Copy Constructor inside of … -
Replied To a Post in about mobile bateries
thanks for all my friend.... thanks -
Gave Reputation to rubberman in about mobile bateries
Glad to help. Remember, the voltage is key. Amps is the current it can provide, so you want at least as much as the device can draw, otherwise, the power … -
Gave Reputation to rubberman in about mobile bateries
Wh == Watt Hours Watts == volts * amps Ah == Amp Hours Watt Hours == Amp Hours * volts So, 1200mAh == 1.2Ah which * 3.7V == 4.44Wh 950mAh … -
Marked Solved Status for about mobile bateries
my mobile batery is BL-5F: - 950mAh; - 3,7V; - 3,5Wh. the BL-6F: - 1200mAh; - 3,7V; - 4,4Wh. the have the connection in same place. the 6F give me … -
Replied To a Post in about mobile bateries
thanks for correct me that. now i know that i can change my BL-5F to BL-6F without a problem ;) because i use a diferent theme(needs more batery) and i … -
Marked Solved Status for [win32] - why the WM_PAINT msg don't show me the img before form resize?
i put an image on form with WM_PAINT message. but the image is, only, showed after resize(for example) the form. why is that? did i forget any style\extended style? -
Gave Reputation to triumphost in [win32] - why the WM_PAINT msg don't show me the img before form resize?
The problem with the above code is actually that you LOAD the image every single time the window is painted. This can take time to do. Not only that, you … -
Replied To a Post in [win32] - why the WM_PAINT msg don't show me the img before form resize?
i resolve the problem adding these line: ShowWindow(hwnd, SW_NORMAL); UpdateWindow(hwnd); InvalidateRect(hwnd,NULL,true);//i add these line for fix that after create the form. thanks for all -
Edited about mobile bateries
my mobile batery is BL-5F: - 950mAh; - 3,7V; - 3,5Wh. the BL-6F: - 1200mAh; - 3,7V; - 4,4Wh. the have the connection in same place. the 6F give me … -
Created about mobile bateries
my mobile batery is BL-5F: - 950mAh; - 3,7V; - 3,5Wh. the BL-6F: - 1200mAh; - 3,7V; - 4,4Wh. the have the connection in same place. the 6F give me … -
Began Watching about mobile bateries
my mobile batery is BL-5F: - 950mAh; - 3,7V; - 3,5Wh. the BL-6F: - 1200mAh; - 3,7V; - 4,4Wh. the have the connection in same place. the 6F give me … -
Replied To a Post in [win32] - why the WM_PAINT msg don't show me the img before form resize?
i, now, understand why don't works ;) see my form window procedure: static LRESULT CALLBACK WndProcForm(HWND HandleWindow, UINT msg, WPARAM wParam, LPARAM lParam) { static POINT PreviousLocation, Location; static bool … -
Replied To a Post in [win32] - why the WM_PAINT msg don't show me the img before form resize?
in form class: case WM_PAINT: { if (inst->Paint==NULL) break; PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); inst->Paint(inst->hwnd,hdc); EndPaint(inst->hwnd, &ps); } break; (inst is the instance class pointer, but the problem … -
Replied To a Post in [win32] - about regions with forms and child controls
sorry triumphost, but i can show you a print screen about the button ;) see these print screen: https://onedrive.live.com/?cid=C3EF456E15C8DEB6&id=C3EF456E15C8DEB6!1257&v=3 but i'm testing that function with a form -
Created [win32] - about regions with forms and child controls
heres a nice tutorial about regions: http://www.flipcode.com/archives/Win32_Window_Skinning.shtml like you see, these tutorial is for forms.. so how we can do with child controls!?! we can: add the WS_CLIPCHILDREN or WS_CLIPSIBLINGS … -
Began Watching [win32] - about regions with forms and child controls
heres a nice tutorial about regions: http://www.flipcode.com/archives/Win32_Window_Skinning.shtml like you see, these tutorial is for forms.. so how we can do with child controls!?! we can: add the WS_CLIPCHILDREN or WS_CLIPSIBLINGS … -
Created [win32] - why the WM_PAINT msg don't show me the img before form resize?
i put an image on form with WM_PAINT message. but the image is, only, showed after resize(for example) the form. why is that? did i forget any style\extended style? -
Began Watching [win32] - why the WM_PAINT msg don't show me the img before form resize?
i put an image on form with WM_PAINT message. but the image is, only, showed after resize(for example) the form. why is that? did i forget any style\extended style? -
Replied To a Post in [C++11-win32] - combination of keys
now i must do another complex test ;) maybe i can use several combinations of '&' and '|' ;) -
Replied To a Post in [C++11-win32] - combination of keys
i found my problem: int GetAllKeyPressed() { int key=0; bool FirstKey=false; for(int i=0; i<256; i++) { if(GetAsyncKeyState(i) & 0x8000) { if(FirstKey==false) { key=i; FirstKey=true; } else { key=key&i; } } … -
Replied To a Post in [C++11-win32] - combination of keys
i'm working with a code for get all pressed keys inside of a variable: int GetAllKeyPressed() { int key=0; for(int i=0; i<256; i++) { if(GetAsyncKeyState(i) & 0x8000) { if(i==0) key=i; … -
Replied To a Post in [C++11-win32] - combination of keys
the problem was the 'if' order ;) bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed=false; static DWORD StartTimer = GetTickCount(); static int i=0; //test if the 1st key was pressed … -
Replied To a Post in [C++11-win32] - combination of keys
bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed=false; static DWORD StartTimer = 0; static int i=0; if((GetAsyncKeyState(keys[0]) & 0x8000) and PreviousKeyPressed==false) { i=0; SetWindowText(a,"hello"); PreviousKeyPressed=true; StartTimer = GetTickCount(); i++; } … -
Created [C++11-win32] - combination of keys
i'm build a function for do the combination of keys(like the kombat games: we do some combination keys for do an actions): bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed; … -
Began Watching [C++11-win32] - combination of keys
i'm build a function for do the combination of keys(like the kombat games: we do some combination keys for do an actions): bool CombineKeys(std::vector<int> const keys) { static bool PreviousKeyPressed; … -
Replied To a Post in [win32] - how make the form transparent and opacy?
let me ask(i can be confused): the transparent(if i use an image on form) and the shaping forms aren't more or less the same? or the transparent is only for … -
Replied To a Post in [win32] - how make the form transparent and opacy?
thanks for that info too ;) i need ask anotherthing(sorry bored you): where the backcolor is hide, can i make a 'real' hole?(click on aplication that is on back?) the … -
Replied To a Post in [win32] - how make the form transparent and opacy?
now i'm confused :( "Apparently the problem is with Aero and hbrBackground being NULL as well as using Magenta" what you bean? and yes i tryied change for: RGB(255,255,255) and … -
Replied To a Post in [win32] - how make the form transparent and opacy?
see what happens when i maximizate the form: https://onedrive.live.com/?cid=C3EF456E15C8DEB6&id=C3EF456E15C8DEB6!1256&v=3 why i see an incomplete border of a form? -
Replied To a Post in [win32] - how make the form transparent and opacy?
now works.. but if i maximizate the form, i get the same problem. do i need repeat these when i change the form size? -
Replied To a Post in [win32] - how make the form transparent and opacy?
sorry.. i'm not good on design, but it's for show you the problem. https://onedrive.live.com/?cid=C3EF456E15C8DEB6&id=C3EF456E15C8DEB6!1255&v=3 like you see the mouse icon is changed to text icon(see above the close form button). … -
Replied To a Post in [win32] - how make the form transparent and opacy?
"My first solution works for fixing the focus. Other than that, I can't understand what it is you need fixing without seeing the code or a snippet of it or … -
Replied To a Post in [win32] - how make the form transparent and opacy?
sorry.. the mouse isn't showed with PrintScreen. the form is transparent, but, when i move the mouse above the 'X' button(for exemple).. the select effect don't happens and i can't … -
Replied To a Post in [win32] - super subclass: how connect the form to window procedure
i have 1 problem with window procedure(i belive), the child controls have the BS_NOTIFY style, but the click or others(from BS_NOTIFY style) aren't working.. why? //in button window procedure: case … -
Replied To a Post in [win32] - how make the form transparent and opacy?
sorry.. not that. think in these way: the form is above the word(for exemple) and the mouse is above the form title bar. why the cursor is changed to text … -
Replied To a Post in [win32] - how make the form transparent and opacy?
thanks for all. but i need ask: the form that i use these function have the border and the close button... so why they aren't working? -
Created [win32] - how make the form transparent and opacy?
heres the code that i use for put the form transparent: LONG style= GetWindowLong(hwnd, GWL_EXSTYLE); style=style | WS_EX_LAYERED; SetWindowLong(hwnd, GWL_EXSTYLE, style); SetLayeredWindowAttributes(hwnd, clrBackColor, NULL, LWA_COLORKEY); but i see problems :( … -
Began Watching [win32] - how make the form transparent and opacy?
heres the code that i use for put the form transparent: LONG style= GetWindowLong(hwnd, GWL_EXSTYLE); style=style | WS_EX_LAYERED; SetWindowLong(hwnd, GWL_EXSTYLE, style); SetLayeredWindowAttributes(hwnd, clrBackColor, NULL, LWA_COLORKEY); but i see problems :( … -
Replied To a Post in [win32] - super subclass: how connect the form to window procedure
true.. it's more complex, but i get the point ;) i have several more errors on my class, but i can fix them easely(you fix the master error) ;) i'm …
The End.