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

Search:

Type: Posts; User: windowsxyz

Search: Search took 0.05 seconds.

  1. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    900x500:


    textbox = CreateWindowA("EDIT", "", WS_VISIBLE | WS_CHILD | WS_BORDER, 694, 219, 159, 21, hwnd, NULL, NULL, NULL);
    button = CreateWindowA("BUTTON", "OK", WS_CHILD |...
  2. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    Yes the problem is how do I calculate this? I'm horrible at maths. Please someone post a solution, this is harder then I was ever expecting GUI creation to be.
  3. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    // bm.bmWidth
    // bm.bmHeight

    ^ Use the above to get W and H in pixels. Next make window full screen and get the W and H in pixels again? How would I then calculate where everything needs to...
  4. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    Width = 900
    Height = 500

    The above is for the original window size (before being made full screen) and the bitmap.

    How do I use what you posted sorry?
  5. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    Yes sounds as if it would work, but how? I have screen size width and height in variables W and H. But how do I calculate this? Thanks.
  6. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    I've been trying for hours. What displays for one screen size correctly displays incorrectly for another screen size. I respect everyone's patience but I just need one final bit of help, otherwise I...
  7. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    If you compile the source and have that image I posted in same folder you'd understand. But I'll try my best to explain; it moves EDIT and BUTTON to the right side of the screen, but it's a little...
  8. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    @Igor Vartanov

    It's almost perfect, however the EDIT and BUTTON is still not exactly in the correct place.

    With this code and the image (inside of the .rar I attached earlier) could you show...
  9. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    File it too large to upload so I have posted source here. Even the picture won't allow me to upload directly so I placed it inside of .rar



    #include <windows.h>
    LRESULT CALLBACK...
  10. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    I was told my admins to attach my source code rather then upload it, so check attached

    I hope someone can help me implement it. Inside of the release folder is 'picture.bmp', use this to...
  11. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    I was told my admins to post my source here.

    I hope someone can help me implement it. Inside of the release folder is 'picture.bmp', use this to understand roughly where the textbox (TEXT) and...
  12. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    How will I know the top left position, does this calculate where it should move:


    BOOL CALLBACK ChildCall(HWND hwnd, LPARAM lParam)
    {
    CallPass *cp = (CallPass*)lParam;

    SetWindowPos(hwnd, 0,...
  13. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    Sorry for not saying thanks or replying but I never got a proper chance to look at the code.

    Would 2kaud or anyone else be able to help me implement it if I send you the visual c++ 2010 project...
  14. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    I've looked at this for a few days but honestly I'm lost, haven't got enough experience with WinAPI programming yet.

    Would you be able to provide an example which displays a GUI and then when a...
  15. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    But the program will know how big the window is since I've used this code to get the size before I changed the window to that size.


    int W = GetSystemMetrics(SM_CXSCREEN);
    int H =...
  16. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    Before I attempt to do this can you confirm that I won't need to write the new coordinates (x and y) for the buttons etc... they will automatically figure out what new position to move to, correct?...
  17. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    Let me re-explain the question:

    1) I create a window. The width is 900, the height is 500. There is no title bar, frame etc...
    2) There are buttons etc… in different places on the form window....
  18. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    How do I do that? Sorry but I am completely lost. Want me to PM you the source code?
  19. Replies
    45
    Views
    6,310

    Re: Window help (ignore previous thread)

    If something does not make sense please post, I need help with this badly.
  20. Replies
    45
    Views
    6,310

    Window help (ignore previous thread)

    Hi. Please ignore previous thread and read this one.

    Pretend I create a button like this:


    case WM_CREATE:
    button = CreateWindowA("BUTTON", "SUBMIT", WS_VISIBLE | WS_CHILD |...
  21. Replies
    0
    Views
    530

    Window size help

    Hi

    I am making an application display a window with a background picture using Win32API. Here are the 2 problems:
    1) Window code doesn't show window properly on some windows versions, I think...
  22. Replies
    4
    Views
    2,703

    Re: Help convert into Win32API

    Sorry the page didn't load correctly when I posted previously.

    Thanks for moving thread, wasn't sure where to post it. I don't have much in terms of payment, it's the reason I didn't post in jobs...
  23. Replies
    4
    Views
    2,703

    Re: Help convert into Win32API

    Since it's not possible to PM on this forum please email me on: windowsxyz@hmamail.com and I'll reply on my work email.
  24. Replies
    4
    Views
    2,703

    Help convert into Win32API

    Hi users

    I was given a source code in C, it is quite basic just using stdio.h and time.h, nothing difficult.

    I badly need this source converted into just WinAPI for a project, however I do not...
Results 1 to 24 of 24





Click Here to Expand Forum to Full Width

Featured