• Member Avatar for cambalinho
    cambalinho

    Replied To a Post in save a structure data and read from a file

    thanks for that triumphost. now i need another correction :( i can overloading the operator >> and <<. but can i overloading the read() and write()? i need overloading these …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in save a structure data and read from a file

    see just in these way: friend ofstream& operator << (ofstream &os, const image &img2) { os << img2.strfilename; return os; } friend ifstream& operator << (ifstream &is, image &img2) { …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in save a structure data and read from a file

    true.. now i have miss something that i don't know :( these functions aren't completed, but they miss something that i don't know: friend ofstream& operator << (ofstream &os, const …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in save a structure data and read from a file

    from your 1st code i get these error: "'std::ofstream& image::operator<<(std::ofstream&, const image&)' must take exactly one argument" why?
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in save a structure data and read from a file

    i'm sorry triumphost, but how can i overloading ofstream and ifstream? friend ofstream &operator << (ofstream &f, const image &obj) { f<<obj.HBitmap <<obj.imageweight << obj.imageheight<<obj.img; return f; } friend ifstream …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in save a structure data and read from a file

    triumphost: the error only happens when i close\ends the program. now i use C++ code, it's more stable. i can use the string. but i have my image class: have …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in save a structure data and read from a file

    triumphost: i'm sorry, but i can read the file. my problem is, only, when i close\ends the program
  • Member Avatar for cambalinho
    cambalinho

    Created save a structure data and read from a file

    i have these code for save a structure data to a file and then read it: struct user { string name; image foto; string adress; int age; }; user usrName={"joaquim",image("C:\\Nova …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching save a structure data and read from a file

    i have these code for save a structure data to a file and then read it: struct user { string name; image foto; string adress; int age; }; user usrName={"joaquim",image("C:\\Nova …
  • Member Avatar for cambalinho
    cambalinho

    Created GDIPLUS: what is Matrix and what i can do with it?

    i need just an intro about Matrix. what is Matrix and what i can do? i understand that i can rotate, scale, mirror and more. but can i swap pixels?(convert …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching GDIPLUS: what is Matrix and what i can do with it?

    i need just an intro about Matrix. what is Matrix and what i can do? i understand that i can rotate, scale, mirror and more. but can i swap pixels?(convert …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - why i can't return HBITMAP on my image class?

    i'm sorry, is my code\question confused?
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - why i can't return HBITMAP on my image class?

    sorry continues with some problems. but i fix it: class BitmapDC { private: MemoryDC hdcbitmap; HGDIOBJ bitmapold; HBITMAP bitmapcurrent; MemoryDC hdcbitmap2; HGDIOBJ bitmapold2; HBITMAP bitmapcurrent2; int intwidth; int intheight; void …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - can i print a window without printer dialog?

    can i print it on a pdf file(or other virtual printer) for don't lose so many cartridges? i had installed 1, but i only get a empty page :(
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - why i can't return HBITMAP on my image class?

    i'm sorry, but i get errors here: operator HBITMAP() const { if (bitmapold) { SelectObject(hdcbitmap, bitmapold); bitmapold = nullptr;//error } return bitmapcurrent; } "assignment of member 'BitmapDC::bitmapold' in read-only object" …
  • Member Avatar for cambalinho
    cambalinho

    Gave Reputation to triumphost in win32 - can i print a window without printer dialog?

    You are leaking by calling `GetDC(hwnd)` and not releasing it. DOCINFO di = {sizeof(DOCINFO), "Bitmap Printing"}; HDC pDC = GetPrinterDC(hwnd); int w = GetDeviceCaps(pDC, HORZRES); int h = GetDeviceCaps(pDC, VERTRES); …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - can i print a window without printer dialog?

    i was close to finish the code... but i lose the cartridges on printer :( in time i will came back here
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - why i can't return HBITMAP on my image class?

    correct me more. how can i fix it for i return the HBITMAP?
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - can i print a window without printer dialog?

    i'm sorry i can't see what is the include file. i can't use the GetPrinterDC() function.
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - can i print a window without printer dialog?

    but i don't use VS20015 and i don't want show the printer dialog. these is just for print what is on window
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - can i print a window without printer dialog?

    ok.. almost done: void print() { //getting the default printer name char szPrinterName[255]; unsigned long lPrinterNameLength; GetDefaultPrinter( szPrinterName, &lPrinterNameLength ); //getting printer DC HDC printerDC = CreateDC( "WINSPOOL",szPrinterName, NULL, NULL); …
  • Member Avatar for cambalinho
    cambalinho

    Created win32 - can i print a window without printer dialog?

    can i print a window without printer dialog?
  • Member Avatar for cambalinho
    cambalinho

    Began Watching win32 - can i print a window without printer dialog?

    can i print a window without printer dialog?
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - why i can't return HBITMAP on my image class?

    seems that i have 1 problem on my BitmapDC(line): BitBlt(bitmapsource, 0, 0, intwidth, intheight, bitmapsource, 0, 0, SRCCOPY); it's: BitBlt(bitmapsource, 0, 0, intwidth, intheight, HBitmap, 0, 0, SRCCOPY); besides the …
  • Member Avatar for cambalinho
    cambalinho

    Created win32 - why i can't return HBITMAP on my image class?

    see my MemoryDc and BitmapDC class's: class MemoryDC { private: HDC memoryDC; public: MemoryDC () { HDC hdc=GetDC(GetDesktopWindow()); memoryDC=CreateCompatibleDC(hdc); ReleaseDC(GetDesktopWindow(),hdc); } operator HDC() const { return memoryDC; } ~MemoryDC () …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching win32 - why i can't return HBITMAP on my image class?

    see my MemoryDc and BitmapDC class's: class MemoryDC { private: HDC memoryDC; public: MemoryDC () { HDC hdc=GetDC(GetDesktopWindow()); memoryDC=CreateCompatibleDC(hdc); ReleaseDC(GetDesktopWindow(),hdc); } operator HDC() const { return memoryDC; } ~MemoryDC () …
  • Member Avatar for cambalinho
    cambalinho

    Created how convert these code from VB6 to C++?

    i'm converting the VB6 DIB code to C\C++ from: http://www.tannerhelland.com/42/vb-graphics-programming-3/ **V – Using DIB Sections** but doing by steps... how can i convert: ReDim ImageData(0 To 2, 0 To bm.bmWidth …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching how convert these code from VB6 to C++?

    i'm converting the VB6 DIB code to C\C++ from: http://www.tannerhelland.com/42/vb-graphics-programming-3/ **V – Using DIB Sections** but doing by steps... how can i convert: ReDim ImageData(0 To 2, 0 To bm.bmWidth …
  • Member Avatar for cambalinho
    cambalinho

    Marked Solved Status for win32 - how avoiding flickers with big windows?

    i'm getting flickers on windows. the windows have CW_USEDEFAULT size and i use the WS_CLIPCHILDREN. on WM_PAINT i use my image class with client rect size. it's big. but not …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - how avoiding flickers with big windows?

    the problem was that i was drawing 2 times on HDC control(background color and image). so i did another double buffering and no more flickers ;) thanks for all
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - how avoiding flickers with big windows?

    i'm sorry, but i don't know how :( you just mean copy the WM_PAINT to here?
  • Member Avatar for cambalinho
    cambalinho

    Edited win32 - how avoiding flickers with big windows?

    i'm getting flickers on windows. the windows have CW_USEDEFAULT size and i use the WS_CLIPCHILDREN. on WM_PAINT i use my image class with client rect size. it's big. but not …
  • Member Avatar for cambalinho
    cambalinho

    Created win32 - how avoiding flickers with big windows?

    i'm getting flickers on windows. the windows have CW_USEDEFAULT size and i use the WS_CLIPCHILDREN. on WM_PAINT i use my image class with client rect size. it's big. but not …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching win32 - how avoiding flickers with big windows?

    i'm getting flickers on windows. the windows have CW_USEDEFAULT size and i use the WS_CLIPCHILDREN. on WM_PAINT i use my image class with client rect size. it's big. but not …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - how calculate the nMax on scrollbars?

    the nPage is the parent client bottom and the nMax is the entire scroll area(vertical\horizontal).
  • Member Avatar for cambalinho
    cambalinho

    Created win32 - how calculate the nMax on scrollbars?

    i did a class for tell me what child controls the form have. and another class for tell me the last child control position(more big top and left) inclued the …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching win32 - how calculate the nMax on scrollbars?

    i did a class for tell me what child controls the form have. and another class for tell me the last child control position(more big top and left) inclued the …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in taskbar questions

    please see these image: http://www.sevenforums.com/attachments/tutorials/17261d1247158804-windows-media-player-taskbar-toolbar-wmp_toolbar_in_win_7.png like you see, we have 1 minitoolbar on taskbar. how can i add something similar to it on taskbar?
  • Member Avatar for cambalinho
    cambalinho

    Began Watching taskbar questions

    i know get the windows taskbar HWND: HWND GetDesktopToolBar() { return FindWindow("Shell_Traywnd", ""); } now i can do: 1 - add controls on left side(close to Start Button)... but the …
  • Member Avatar for cambalinho
    cambalinho

    Stopped Watching taskbar questions

    i know get the windows taskbar HWND: HWND GetDesktopToolBar() { return FindWindow("Shell_Traywnd", ""); } now i can do: 1 - add controls on left side(close to Start Button)... but the …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in taskbar questions

    i mean add a button on taskbar for do some action
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in taskbar questions

    using that code, i can add a child control,too, on task bar but will be above the icon\button where is the program :( can i add 1 button after the …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in taskbar questions

    i must include the Shobjidl.h but i need include anotherthing for the linker too: "undefined reference to `_imp__CoCreateInstance@20'" i have several errors like these. but i can't find the right …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in taskbar questions

    i'm sorry, but what is the library for use the ITaskbarList and others?
  • Member Avatar for cambalinho
    cambalinho

    Created win32 - hook: how can i get the ckeckbox state?

    i'm changind the standard messagebox for add more options. using the hook procedure, i can center to it's parent and the text too. and i added a checkbox(without a window …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching win32 - hook: how can i get the ckeckbox state?

    i'm changind the standard messagebox for add more options. using the hook procedure, i can center to it's parent and the text too. and i added a checkbox(without a window …
  • Member Avatar for cambalinho
    cambalinho

    Marked Solved Status for win32 - can i get the desktop toolbar?

    the GetDesktopWindow() give me the desktop HWND, but how can i get the desktop toolbar HWND? i belive that theres 1 function for get the toolbar on windows, but i …
  • Member Avatar for cambalinho
    cambalinho

    Replied To a Post in win32 - how put a control on center depending on parent size?

    i was geting wrong parent. now see these code: enum ControlPositions { CenterCenter=0, LeftCenter=1, LeftTop=2, LeftBottom=3, CenterTop=4, CenterBottom=5, RightTop=6, RightCenter=7, RightBottom=8, LeftRightTop=9, LeftRightBottom=10, LeftTopBottom=11 }; void ControlPosition(HWND hWnd, ControlPositions ControlPosition=CenterCenter) …
  • Member Avatar for cambalinho
    cambalinho

    Created taskbar questions

    i know get the windows taskbar HWND: HWND GetDesktopToolBar() { return FindWindow("Shell_Traywnd", ""); } now i can do: 1 - add controls on left side(close to Start Button)... but the …
  • Member Avatar for cambalinho
    cambalinho

    Began Watching taskbar questions

    i know get the windows taskbar HWND: HWND GetDesktopToolBar() { return FindWindow("Shell_Traywnd", ""); } now i can do: 1 - add controls on left side(close to Start Button)... but the …

The End.