-
Edited C++: how can i create events?
the C++ have virtual functions, but, for me they have 1 problem: on derived class, i must prototype them, for define them on Global Scope. how can i avoid the … -
Created C++: how can i create events?
the C++ have virtual functions, but, for me they have 1 problem: on derived class, i must prototype them, for define them on Global Scope. how can i avoid the … -
Began Watching C++: how can i create events?
the C++ have virtual functions, but, for me they have 1 problem: on derived class, i must prototype them, for define them on Global Scope. how can i avoid the … -
Created GDIPLUS::Image: can i change the transparent to false?
i know save the Image on IStream. but what isn't saved like the original: the backcolor goes to black instead stays white. i belive that the problem is the transparent … -
Began Watching GDIPLUS::Image: can i change the transparent to false?
i know save the Image on IStream. but what isn't saved like the original: the backcolor goes to black instead stays white. i belive that the problem is the transparent … -
Created timeSetEvent: is these function limited?
i did a class for the timer precision using the timeSetEvent(). of course i can have more than 7 instances from the Timer class(with 200ms or something so small). is … -
Began Watching timeSetEvent: is these function limited?
i did a class for the timer precision using the timeSetEvent(). of course i can have more than 7 instances from the Timer class(with 200ms or something so small). is … -
Marked Solved Status for how can i get the program folder name?
using: char username[255+1]; DWORD username_len = 255+1; GetUserName(username, &username_len); i get the actual user name. but how can i get the program folder name for execute a program? the '%ProgramFiles(x86)%' … -
Marked Solved Status for win32 - DIB's : how can i calculate the next position pixel?
i have these code for get image pixel data: typedef std::vector<BYTE> pixeldata; pixeldata GetImagePixel(HDC hdcImage) { BITMAP bmp = {0}; BITMAPINFO Info = {0}; memset( &bmp, 0, sizeof(BITMAP) ); HBITMAP … -
Replied To a Post in win32 - DIB's : how can i calculate the next position pixel?
after several tests, i fixed the function: void Shadow(int PosX=0, int PosY=0, COLORREF ShadowColor=RGB(0,0,0)) { pixeldata pixels=GetImagePixel(HBitmap); size_t pixelSize = HBitmap.bitperpixel() / 8; size_t scanlineSize = (pixelSize * HBitmap.Width() + … -
Edited win32 - DIB's : how can i calculate the next position pixel?
i have these code for get image pixel data: typedef std::vector<BYTE> pixeldata; pixeldata GetImagePixel(HDC hdcImage) { BITMAP bmp = {0}; BITMAPINFO Info = {0}; memset( &bmp, 0, sizeof(BITMAP) ); HBITMAP … -
Created win32 - DIB's : how can i calculate the next position pixel?
i have these code for get image pixel data: typedef std::vector<BYTE> pixeldata; pixeldata GetImagePixel(HDC hdcImage) { BITMAP bmp = {0}; BITMAPINFO Info = {0}; memset( &bmp, 0, sizeof(BITMAP) ); HBITMAP … -
Began Watching win32 - DIB's : how can i calculate the next position pixel?
i have these code for get image pixel data: typedef std::vector<BYTE> pixeldata; pixeldata GetImagePixel(HDC hdcImage) { BITMAP bmp = {0}; BITMAPINFO Info = {0}; memset( &bmp, 0, sizeof(BITMAP) ); HBITMAP … -
Created win32 -GDIPLUS: how i get the frame delay correctly?
i'm getting problems, again, on how i get the frame delay on gif files using Image class: UINT TotalBuffer = img2.GetPropertyItemSize(PropertyTagFrameDelay); //img2 = (PropertyItem*)malloc(TotalBuffer);//my compiler gives an error img2.GetPropertyItem(PropertyTagFrameDelay,TotalBuffer,&img2); framedelay=TotalBuffer; … -
Began Watching win32 -GDIPLUS: how i get the frame delay correctly?
i'm getting problems, again, on how i get the frame delay on gif files using Image class: UINT TotalBuffer = img2.GetPropertyItemSize(PropertyTagFrameDelay); //img2 = (PropertyItem*)malloc(TotalBuffer);//my compiler gives an error img2.GetPropertyItem(PropertyTagFrameDelay,TotalBuffer,&img2); framedelay=TotalBuffer; … -
Replied To a Post in System Menu: how can i change the standard System Menu?
rch1231: on Desktop is limited. i mean on: http://www.codeproject.com/KB/menus/SubclassedSystemMenu/SubclassedSystemMenu.gif -
Replied To a Post in System Menu: how can i change the standard System Menu?
why these option isn't a standard option? -
Replied To a Post in how can i get the program folder name?
after several searchs i found the SHGetFolderPath(): https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181%28v=vs.85%29.aspx heres a sample: char programs[255+1]; SHGetFolderPath(NULL,CSIDL_PROGRAM_FILESX86 ,NULL,SHGFP_TYPE_DEFAULT,programs); MessageBox(NULL,programs,"hi",0); Only some CSIDL values are supported, including the following: CSIDL_ADMINTOOLS CSIDL_APPDATA CSIDL_COMMON_ADMINTOOLS CSIDL_COMMON_APPDATA CSIDL_COMMON_DOCUMENTS … -
Created how can i get the program folder name?
using: char username[255+1]; DWORD username_len = 255+1; GetUserName(username, &username_len); i get the actual user name. but how can i get the program folder name for execute a program? the '%ProgramFiles(x86)%' … -
Began Watching how can i get the program folder name?
using: char username[255+1]; DWORD username_len = 255+1; GetUserName(username, &username_len); i get the actual user name. but how can i get the program folder name for execute a program? the '%ProgramFiles(x86)%' … -
Replied To a Post in VBScript: how use win32?
i created the cls file: Imports System Imports System.Runtime.InteropServices Imports Microsoft.Win32 Namespace WindowScriptingObject <Guid("7448E08D-ED0F-4E23-B528-91937BB41756"), _ InterfaceType(ComInterfaceType.InterfaceIsIDispatch)> _ Public Interface _WindowScriptingObject <DispId(1)> Function ActiveWindow() As Integer <DispId(2)> Function WindowText(ByVal hWnd As … -
Created VBScript: how use win32?
i never used VBScript. how can i use win32 functions? -
Began Watching VBScript: how use win32?
i never used VBScript. how can i use win32 functions? -
Created System Menu: how can i change the standard System Menu?
the window have a icon, on caption\title bar. that icon show us the System Menu(mouse right button). my objective is add to it the Allways on Top option. using a … -
Began Watching System Menu: how can i change the standard System Menu?
the window have a icon, on caption\title bar. that icon show us the System Menu(mouse right button). my objective is add to it the Allways on Top option. using a … -
Created windows media player skin: how i can enable the play button?
i can change the windows media player skin. readers: please save the skin on a folder instead execute it, when on download. or will get an error. when i execute … -
Began Watching windows media player skin: how i can enable the play button?
i can change the windows media player skin. readers: please save the skin on a folder instead execute it, when on download. or will get an error. when i execute … -
Created can i add 1 item on standard System Menu?
can i add 1 item on standard System Menu? (my big objective is just add 1 item for put the window allways on top) -
Began Watching can i add 1 item on standard System Menu?
can i add 1 item on standard System Menu? (my big objective is just add 1 item for put the window allways on top) -
Created how set a region to a window?
i have my own region class: class region { private: BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight) { // a bitmap object just to get bitmap width and height BITMAP … -
Began Watching how set a region to a window?
i have my own region class: class region { private: BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight) { // a bitmap object just to get bitmap width and height BITMAP … -
Gave Reputation to nullptr in c++win32 - how can i get the X caret on richedit?
Try EM_LINEINDEX message, specifying `-1` for the `wParam` -
Gave Reputation to rproffitt in c++win32 - how can i get the X caret on richedit?
My thought on researching this one. I recall that's in User32.dll so this: https://www.google.com/search?hl=en&as_q=GetCaretPos&as_epq=User32+dll MSDN only had the C# call (which is what I code too much in.) https://msdn.microsoft.com/en-us/library/windows/desktop/ms648402%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 -
Marked Solved Status for c++win32 - how can i get the X caret on richedit?
i'm trying getting the richedit caret positions. seems that i can't use the caret functions. LONG firstCharIndex(HWND hwnd) { POINT pt; pt.x=0; pt.y=0; LONG n = SendMessage(hwnd, EM_CHARFROMPOS, 0, (LPARAM)&pt); … -
Replied To a Post in c++win32 - how can i get the X caret on richedit?
finally it's working greate: void SetCaretPos(POINT pos) { LONG characterIndexLine =0; characterIndexLine=(LONG) SendMessage(consoleedit, EM_LINEINDEX, (WPARAM) pos.y-1,0); characterIndexLine+=(LONG)pos.x; CHARRANGE cr; cr.cpMin = characterIndexLine; cr.cpMax = characterIndexLine; SendMessage(consoleedit, EM_EXSETSEL, 0, (LPARAM)&cr); } … -
Replied To a Post in c++win32 - how can i get the X caret on richedit?
nullptr: that gives me the character position on where is the caret. but give me the text position and not the line position.(the coordenates are gived by entire text, and … -
Replied To a Post in c++win32 - how can i get the X caret on richedit?
the GetCaretPos() don't works on richedit :( unless, first, i need recreate it? -
Edited c++win32 - how can i get the X caret on richedit?
i'm trying getting the richedit caret positions. seems that i can't use the caret functions. LONG firstCharIndex(HWND hwnd) { POINT pt; pt.x=0; pt.y=0; LONG n = SendMessage(hwnd, EM_CHARFROMPOS, 0, (LPARAM)&pt); … -
Created c++win32 - how can i get the X caret on richedit?
i'm trying getting the richedit caret positions. seems that i can't use the caret functions. LONG firstCharIndex(HWND hwnd) { POINT pt; pt.x=0; pt.y=0; LONG n = SendMessage(hwnd, EM_CHARFROMPOS, 0, (LPARAM)&pt); … -
Began Watching c++win32 - how can i get the X caret on richedit?
i'm trying getting the richedit caret positions. seems that i can't use the caret functions. LONG firstCharIndex(HWND hwnd) { POINT pt; pt.x=0; pt.y=0; LONG n = SendMessage(hwnd, EM_CHARFROMPOS, 0, (LPARAM)&pt); … -
Replied To a Post in C++ - How resize a window console buffer?
nullptr: that thread is limited. heres my code: void SetWindowSize(COORD newsize)//newaize recive the number of characters been showed on window { CONSOLE_SCREEN_BUFFER_INFOEX consolesize; consolesize.cbSize=sizeof(consolesize); HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); GetConsoleScreenBufferInfoEx(hConsole,&consolesize); COORD … -
Replied To a Post in C++ - How resize a window console buffer?
is SetConsoleScreenBufferSize() limitted? if i use it on constructor, works. affter that don't... confused :( the GetLastError() is 87 - 'The parameter is incorrect.' -
Began Watching Setting the console window size
can anyone teach me how to set the size of console window? -
Created C++ - How resize a window console buffer?
how can i resize a window console buffer? i know that i can use the SetConsoleScreenBufferSize(), but i'm getting problems convert from pixels to characters, because the vertical scrollbar is … -
Began Watching C++ - How resize a window console buffer?
how can i resize a window console buffer? i know that i can use the SetConsoleScreenBufferSize(), but i'm getting problems convert from pixels to characters, because the vertical scrollbar is … -
Replied To a Post in save a structure data and read from a file
triumphost: i had found some errors on your code.. i fix them, but i don't get any results :( friend std::ostream& operator << (std::ostream& lhs, const image& rhs) { STATSTG … -
Replied To a Post in save a structure data and read from a file
how can i get IStream size? -
Replied To a Post in save a structure data and read from a file
error: pStream->cbSize.QuadPart error: 'IStream' has no member named 'cbSize'| -
Replied To a Post in save a structure data and read from a file
i'm sorry, but your correction have a memory leak. "You can write the GDIPlus::Image by getting its HBitmap or its pixels." for static images. but not animated gif's. that's why … -
Replied To a Post in save a structure data and read from a file
i have news :) now i overload the string ostream and istream: std::ostream& operator << (std::ostream& lhs, const string& rhs) { int stringsize=rhs.size(); lhs<<stringsize; lhs.write(reinterpret_cast< const char*>(&rhs),rhs.size()); return lhs; } …
The End.