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

Search:

Type: Posts; User: Pravin Kumar

Page 1 of 42 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    890

    Re: Get all open window

    Hello,

    You can use FindWindow call to get windows of whatever type of relation to the specified window.

    For example, the code given below will get all the windows open on desktop.


    // Get...
  2. Replies
    5
    Views
    719

    Re: How to get a View handle?

    Hello,

    There are many methods to do this.

    Andreas Masur, in his FAQ MFC Doc/View: How to obtain a pointer to various objects gives a good compilation on how to get various objects from any part...
  3. Replies
    17
    Views
    1,462

    Re: Problem hex string to char * ..

    Will this FAQ Integer to string and vice-verca for any base be of any help?
  4. Re: Copy new files on old files in same folder

    Before making the folder, check for its existance. If the folder exists, skip making the folder and write files. The files will be overwritten, if it already exists.
  5. Replies
    4
    Views
    555

    Re: Including header files.

    Hello,

    First and third has no difference since file name and extensions has no case difference in DOS / Windows. Second indicates that the include directories are set properly in your project.
    ...
  6. Replies
    2
    Views
    503

    Re: CEditView and Fonts

    Hello,

    It is quite probable that you had set the font to some CFont type variable which is defined locally in the function. Make the CFont variable as a member variable of CEditView class.

    If...
  7. Replies
    6
    Views
    747

    Re: What is wrong here

    Hello,

    Problem lies not in the code you have shown but somewhere else, I feel. The code modified from what you have shown


    do
    {
    cout << "I am stuck in an infinite loop" << endl;...
  8. Replies
    2
    Views
    1,112

    Re: how to track minimize, maximize events

    Hello,

    Maximizing / minimizing window can be done only by using buttons on the toolbar or by toolbar menu. One can check for the corresponding messages for the window concerned and take...
  9. Replies
    3
    Views
    670

    Re: date of week in month

    Hello,

    As Cilu said, there is no ready-made C function to compute this. Moreover, week has different conventions in different countries and contexts like starting from Sunday, Monday or Saturday....
  10. Replies
    7
    Views
    762

    Re: Image dragging

    Hello,

    This FAQ How do I drag an image should be of some help.

    Regards,
    Pravin.
  11. Replies
    5
    Views
    709

    Re: Why this code not print anything??

    Hello,

    Get the bitmap dimension using BITMAP object. For that add the following lines in place of your line containing BitBlt call.


    BITMAP BM;
    bmpLogo.GetBitmap(&BM);
    pDC->BitBlt(0, 0,...
  12. Replies
    3
    Views
    632

    Re: Transparent MDI views?

    I had written that FAQ when I had to match and mix graphic images in two windows. I do not have an idea how it can be done for MDI applications and what could be the need.

    Regards,
    Pravin.
  13. Replies
    3
    Views
    1,256

    Re: extract first word in a string

    Hello,

    Normally, a word is defined as the first group of characters before the first whitespace character. In your problem, you mean it as the first group of alphabets. Am I right?

    It is clear...
  14. Replies
    9
    Views
    948

    Re: Is there API to know screen ratio?

    Hello,

    I have checked with various resolution settings. All the time, monitor aspect ratio was returned as 320:240. Are you sure that your monitor installation settings are correct?

    I must...
  15. Replies
    9
    Views
    948

    Re: Is there API to know screen ratio?

    Hello,

    Best way may be to get the screen DC and use GetDeviceCaps to find the pixels (VERTRES, HORZRES) and pixels per inch (LOGPIXELSX, LOGPIXELSY) of X and Y direction. From these data, it is...
  16. Replies
    8
    Views
    1,049

    Re: Simplest way to find power of number...

    Wow! Really great. Only for powers of 2, that number and its predicissor will AND to give 0. By this method, any calculation in loop is avoided.

    Hats off to laitinen.

    Regards,
    Pravin.
  17. Replies
    1
    Views
    431

    Re: Tree Control

    Hello,

    If I understood your problem correctly, you have a tree control and a bitmap is associated with each of its child item. When the user selects a child item, corresponding bitmap should be...
  18. Replies
    8
    Views
    1,049

    Re: Simplest way to find power of number...

    Hello,

    I am afraid that there is no ready made solutions for this problem. Simplest I can think of is masking the number with powers of 2, like 1, 2, 4, 8 etc till the highest power of 2 below the...
  19. Replies
    0
    Views
    7,242

    How do I edit a list box item?

    Q: How do I edit a list box item?

    A: Individual items of a List box are not editable. How good it would have been, if each of the items are editable then and there! Here is a method to incorporate...
  20. Replies
    3
    Views
    506

    Re: Getting things to move around

    Hello,

    A similar problem where images are moves using mouse is dealt in the FAQ How do I drag an image?. Moving things using keyboard is much simpler, where one has to handle WM_KEYUP / WM_KWYDOWN...
  21. Replies
    2
    Views
    596

    Re: binary to decimal

    Hello,

    I hope that this FAQ Integer to string and vice-verca for any base will be of use.

    Regards,
    Pravin.
  22. Replies
    5
    Views
    1,482

    Re: Editing subitems of CListCtrl

    Hello,

    It is not possible to edit the subitems of the listbox. You can edit the selected item in a combobox. But with some coding, you can edit the item in a listbox also.

    Since clicking...
  23. Re: How to override the Ctrl+V on CRichEditCtrl?

    Hello,

    One easy method to avoid the default behaviour of any key combination is to define an acelerator for that key, create a handler for the accelerator key and to leave the handler function...
  24. Replies
    4
    Views
    653

    Re: Moving a bitmap

    Hello,

    You may shift the window contents to one pixel left with the code mentioned below.


    CRect Rect;
    GetClientRect(Rect);
    CDC MemDC;
    CClientDC DC(this);
    if (MemDC.CreateCompatibleDC(&DC))
  25. Replies
    4
    Views
    653

    Re: Moving a bitmap

    Hello,

    One method is to store the current window as a bitmap in memory device context and paste it on the window with its coordinates moved left by one pixel.

    Regards,
    Pravin.
Results 1 to 25 of 1050
Page 1 of 42 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center