User Profile

Collapse

Profile Sidebar

Collapse
ayan4u
ayan4u
Last Activity: Sep 28 '07, 02:48 PM
Joined: Apr 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ayan4u
    replied to issue with edit boxes...
    in C
    thanks a zillion for your reply....i have been waiting for few weeks for someone to actually reply my post....yeah i can understand a bit what yor are suggesting....a ctually what i am after is that....in Edit window when i press the shortcut keys like ctrl+O..ctrl+N for open...new etc(using accelerator table) nothing happens but when my focus is on the parent window of which the edit window is a child the shortcut keys are actually working.......
    See more | Go to post

    Leave a comment:


  • ayan4u
    started a topic problem with using shortcuts...
    in C

    problem with using shortcuts...

    well we all know what shortcuts are...suppose that the shortcut for open is ctrl+O so that when i press ctrl + O the open dialog box pop ups.....but the problem is suppose that my focus is on a child window and i press the shortcut key...nothing happens....and yeah the shortcuts used are actually accelerators defined in my acclerator table...

    for example i have a menu item FILE->OPEN so the ID will be generally ID_FILE_OPEN so in...
    See more | Go to post

  • ayan4u
    started a topic system class to application local class....
    in C

    system class to application local class....

    is it possible to send messages from system class such as "edit" to an application local class....

    the situation is that i am in system class which is registered(by the system) for a child window to a parent window for which an application local class has been registered(manu ally)....now from the child window which is in the system class i am not being able to send any message back to main window but the vice- versa is ...
    See more | Go to post

  • ayan4u
    started a topic issue with edit boxes...
    in C

    issue with edit boxes...

    ok...i have am edit dialog box which is a child window to a parent window hWnd. Now since the child window is an edit dialog box by default when i right click my mouse in the child window a pop up menu shows up giving me options like undo....copy..p aste...select all....now how to intercept that message from the parent window.....seco ndly i also have an issue of not able to send any message from the child window(edit box) to the parent window....
    See more | Go to post

  • ayan4u
    replied to problem with translating an accelerator table
    in C
    just another bump....can someone really give a solution to it....
    See more | Go to post

    Leave a comment:


  • ayan4u
    replied to problem with translating an accelerator table
    in C
    just to give a bump...
    See more | Go to post

    Leave a comment:


  • ayan4u
    replied to problem with translating an accelerator table
    in C
    what do you mean by not having user interface...the link you provided says

    Accelerators are shortcut keys for program commands on a menu or toolbar AND FOR commands that do not have a user-interface

    so in my case it should work....and i know its working but only when the focus is on the main window( when i press the key combinations).. .its not working when my focus is on the edit box window i.e., when I am in the edit...
    See more | Go to post

    Leave a comment:


  • ayan4u
    started a topic problem with translating an accelerator table
    in C

    problem with translating an accelerator table

    ok i have a main window hWnd and created an edit dialogue box as a child window(gEditBox )

    i have an acclerator table to access the menu items in hWnd

    when i am in the edit box nothing happens if I use the key combinations for my menu items but when my focus is in the main window i.e., my caret is NOT blinkin in the edit box window , the key combinations are working.

    Is it that the accelerator keys are not...
    See more | Go to post

  • ayan4u
    replied to problem with resizing an Edit box
    in C
    hmmm thanks a lot...i will try to implement that....but wonder wht creating a new edit window afresh is not working....thou gh this technique is very bad as i must admit...neways thanx a lot again...
    See more | Go to post

    Leave a comment:


  • ayan4u
    replied to problem with resizing an Edit box
    in C
    well i tried that...

    captured the WM_SIZE message and then used

    DestroyWindow(g EditBox)

    SendMessage(hWn d, WM_CREATE, 0, 0);

    so that the edit box is created again but there an access violation is occuring in CreateWindow() i.e, when it is called through WM_SIZE

    BTW a WM_SIZE message is also dispatched as soon as a window is created along with WM_CREATE so now i am using WM_SIZI...
    See more | Go to post

    Leave a comment:


  • ayan4u
    started a topic problem with resizing an Edit box
    in C

    problem with resizing an Edit box

    [CODE=c]

    HWND gEditBox;

    int APIENTRY WinMain(....)
    {
    HWND hWnd;
    ...
    ...
    ...

    WNDCLASSEX wcex;

    wcex.style = CS_HREDRAW | CS_VREDRAW;
    ..
    ..
    ..
    // Main Window
    hWnd = CreateWindow(sz WindowClass, szTitle, WS_OVERLAPPEDWI NDOW,CW_USEDEFA ULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
    ..
    ..
    }


    ...
    See more | Go to post

  • ayan4u
    replied to getting compiler error in LoadImage in VC 8
    in C
    ????????..no reply...
    See more | Go to post

    Leave a comment:


  • ayan4u
    replied to getting compiler error in LoadImage in VC 8
    in C
    just giving a bump.....can someone help me regarding this.....
    See more | Go to post

    Leave a comment:


  • ayan4u
    replied to getting compiler error in LoadImage in VC 8
    in C
    ok what i found is that the problem lies in the unicode feature of VS 8...
    as by default UNICODE is enabled it takes LoadImage as LoadImageW instead of LoadImageA....

    now i tried to check for unicode feature by
    [CODE=c]
    #ifdef UNICODE
    #undef UNICODE
    ....
    my code goes here
    .....
    #endif
    [/CODE]
    but with no result.....to get the thing compiled i had to explicitly use LoadIma...
    See more | Go to post

    Leave a comment:


  • ayan4u
    started a topic getting compiler error in LoadImage in VC 8
    in C

    getting compiler error in LoadImage in VC 8

    [CODE=c]
    HBITMAP patternBMP =NULL;

    patternBMP = (HBITMAP)LoadIm ge(hInstance, "bitmap.bmp ", IMAGE_BITMAP,0, 0,LR_LOADFROFIL E);

    [/CODE]

    getting a compiler error
    error C2664: 'LoadImageW' : cannot convert parameter 2 from 'const char [11]' to 'LPCWSTR'

    but it should take an array of charecter for the name of the bitmap....it should work but it is not....don't know why!!!!...
    See more | Go to post

  • ayan4u
    replied to where to get the source codes
    in C
    u wll get those in your test books....dnt asl for source codes blindly....its not the right place..rrr..i think....
    See more | Go to post

    Leave a comment:


  • ayan4u
    replied to What platform to use?
    in C
    TSDN...hmm sounds synonymous...lo ll

    neways u can as well implement what you want with c/c++ or delphi or infact any language and a graphics API such as openGL....using flash scripts sounds good but for total control and flexibilty i prefer using openGL...
    See more | Go to post

    Leave a comment:


  • ayan4u
    started a topic i am at the end of my wit...
    in C

    i am at the end of my wit...

    [CODE=c]
    #include <windows.h>
    #include <time.h>
    #define WIDTH 320
    #define HEIGHT 240
    LRESULT CALLBACK WinProc(HWND, UINT, WPARAM, LPARAM);
    int WINAPI WinMain(HINSTAN CE hInstance, HINSTANCE hPrev, LPSTR CmdLine, int CmdShow)
    {
    HWND hWnd;
    MSG msg;
    WNDCLASSEX wc;

    wc.cbSize = sizeof(wc);
    wc.style = CS_HREDRAW | CS_VREDRAW;
    ...
    See more | Go to post

  • ayan4u
    replied to does InvalidateRect() always invokes WM_PAINT
    in C
    ok this problem solved too....just to add GetClientRect() before InvalidateRect( ) so that the structure "rect" is filled with enough informations... .
    See more | Go to post

    Leave a comment:


  • ayan4u
    replied to does InvalidateRect() always invokes WM_PAINT
    in C
    yes ShowText is my function and i have passed hWnd to GetClientRect.. .ok now that i have solved this problem i am facing another...

    now,
    [CODE=c]

    case WM_LBUTTONDOWN:
    InvalidateRect( hWnd, &rect, TRUE);
    break;
    [/CODE]

    must clear the client rect of window "hWnd" when i click left mouse button and invoke WM_PAINT and the text will be written...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...