Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Cambalinho

Page 1 of 38 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: win32- hook: why i can't change anything?

    i must create enum values\flags, but if i don't know, correctly, the messagebox flags values, i can't add them. so i inclued my own enum:

    HHOOK hhookCBTProc = 0;

    //for flags we must do 2^X...
  2. Re: win32- hook: how changing the aligment text and position of messagebox?

    the messagebox() have MB_RIGHT, MB_OK and others. imagine that i want do more 2 MB_CENTER and MB_PARENTCENTER. what values can i use?
  3. Re: win32- hook: how changing the aligment text and position of messagebox?

    yes you have wright. thanks:

    HHOOK hhookCBTProc = 0;

    LRESULT CALLBACK pfnCBTMsgBoxHook(int nCode, WPARAM wParam, LPARAM lParam)
    {
    if(nCode==HCBT_ACTIVATE)//center the text on STATIC child...
  4. Re: win32- hook: how changing the aligment text and position of messagebox?

    thanks for all
    going back to the code. the messagebox 1 STATIC child control, wright?
    so i can catch its HWND:

    HWND hwnd = (HWND)wParam;

    // At this point you have the hwnd of the...
  5. Re: win32- hook: how changing the aligment text and position of messagebox?

    1 - humm.... confused me that :(
    2 - i'm using the codeBlocks. for now, i don't know see the OutputDebugString() messages.
    i'm reading:...
  6. Re: win32- hook: why i can't change anything?

    changing the pcs->x and pcs->y values, the messagebox is changed in real time:

    LRESULT CALLBACK pfnCBTMsgBoxHook(int nCode, WPARAM wParam, LPARAM lParam)
    {
    if (nCode == HCBT_CREATEWND)
    {
    ...
  7. win32- hook: how changing the aligment text and position of messagebox?

    i have these functions for show a messagebox:

    int GetWindowString(HWND hwnd, std::string &s)
    {
    char buffer[65536];

    int txtlen=GetWindowTextLength(hwnd) + 1;
    GetWindowText(hwnd,...
  8. Re: [RESOLVED] win32 - how center a control depending on it's parent position and siz

    for child controls now works fine:

    void CenterInsideParent(HWND hWnd, ControlPositions ControlPosition=CenterCenter)
    {
    //getting the parent
    HWND parent=GetDesktopWindow();
    if...
  9. Re: [RESOLVED] win32 - how center a control depending on it's parent position and siz

    these calculation isn't prepared for border(the caption or arround the window), can anyone advice me?
  10. Re: how use GetProp() and SetProp()?

    sorry, but question was about miss between parent and hwnd. like you have seen, i error because i use the parent instead the hwnd, by mistake.
    thanks for all
  11. Re: how use GetProp() and SetProp()?

    thanks for all

    sorry the question, but let me ask: how can i avoid these type of errors?(i don't mean only in programming... but in life too)
  12. Re: how use GetProp() and SetProp()?

    but i did these test:

    CenterInsideParent(InputBox,a);
    and works fine.
    i test these and the message box is showed:

    if(SetProp(parent, "parent", (HANDLE)parent)==TRUE)
    ...
  13. [RESOLVED] how use GetProp() and SetProp()?

    i'm trying use the GetProp() and SetProp() by my own, but i don't get results :(
    see these function:

    void setParent(HWND parent=GetDesktopWindow())
    {
    if (hwnd==NULL)
    ...
  14. Re: win32 - how center a control depending on it's parent position and size?

    after some work i put it to work:

    const UINT CenterCenter=0;

    void CenterInsideParent(HWND hWnd, HWND parent=GetDesktopWindow(), UINT ControlPosition=CenterCenter)
    {
    //getting the controls...
  15. Re: win32 - how center a control depending on it's parent position and size?

    but see the funcion in these way:

    const UINT CenterCenter=0;

    void CenterInsideParent(HWND hWnd, HWND parent=GetDesktopWindow(), UINT ControlPosition=CenterCenter)
    {
    //getting the controls...
  16. Re: win32 - how center a control depending on it's parent position and size?

    please see the setParent() function. i belive here is a problem. 2 diferent controls(both forms), 1 is parent of other. but when i do:

    GetParent(hWnd)
    i get NULL. so heres there a problem. thats...
  17. Re: win32 - how center a control depending on it's parent position and size?

    i'm playing with the function. and the child control it's on center. but not a control without a WS_CHILD style :(
    i must test more the function
  18. Re: win32 - how center a control depending on it's parent position and size?

    i can't see the form inside the screen :(
    anotherthing: in these case i don't care if is WS_CHILD or not. the position, always, will depend on it's parent(of course if is DeskTop, then will be on...
  19. [RESOLVED] win32 - how center a control depending on it's parent position and size?

    i have these code for center a control depending on it's parent position and size:


    void ScreenToClient(HWND WindowDestination, RECT *WindowRectangle)
    {
    MapWindowPoints(NULL,...
  20. Re: [RESOLVED] GDI - can i speed up the DIB code?

    seems that the DirectX is the key for Audio and\or Video code.
    but it's comples, now, for me. maybe, in time, i will learn it.
    thanks for all
  21. Re: about Notification Tray and it's messages

    thanks for all
  22. Re: [RESOLVED] GDI - can i speed up the DIB code?

    i prefared to use my last code with your correction(not so confusing). thanks for all
  23. [RESOLVED] about Notification Tray and it's messages

    the uCallbackMessage , NOTIFYICONDATA member, it's the message name(UINT msg, on window procedure message):
    - lParam give me the notification message;
    - wParam is for what?
    i didn't find the...
  24. Re: [RESOLVED] GDI - can i speed up the DIB code?

    thanks... yes works fine.. greate.
    thank you for all
  25. Re: [RESOLVED] GDI - can i speed up the DIB code?

    VladimirF : i'm sorry, but i can't rate you :(
    but thanks for help me
Results 1 to 25 of 935
Page 1 of 38 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center