Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
K

kumar_mk

@kumar_mk
About
Posts
22
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • edit control
    K kumar_mk

    thank you very much:)

    thanx in advance kumar_windows

    C / C++ / MFC help wpf question

  • edit control
    K kumar_mk

    Hi, this is a low priority bug of my application, i have an Edit control (READ-ONLY property is TRUE, TABSTOP property is FALSE) which is used to display some Message. The problem is that the "Message" of the edit control is getting selected when i am pressing the UP arrow key from the OK and CANCEL buttons of the dialog box, the "Message" should not get selected, how?? one thing i have written this code in OnInitDialog() to show the message in BOLD/BIGGER font CFont myFont; myFont.CreatePointFont(120, _T("Arial"), NULL); CEdit* pBoxOne; pBoxOne = (CEdit*)GetDlgItem(IDC_STATUS_EDIT); pBoxOne->SetFont(&myFont, TRUE); i have tried checking and unchecking all the styles, extented styles in edit properties, but of no use, may be this problem is arising because of the code i have written for the FONT, do i need to add anything extra in the code?? Pls Help!!!

    thanx in advance kumar

    C / C++ / MFC help wpf question

  • PreTranslateMessage(), OnCancel()
    K kumar_mk

    thanks a lot Naveen, its working:)

    thanx in advance kumar_windows

    C / C++ / MFC help question database

  • PreTranslateMessage(), OnCancel()
    K kumar_mk

    Dear members, i have a query, In my dialog box i have an Edit Control that takes numeric value, Now after typing the value in the edit box, i press RETURN key for some validation to take place, for this task i am handling the PreTranslateMessage() for the VK_RETURN message, Now the problem is when i highlight the CANCEL button (with tab button)in the dialog box and try to close the Dialog Box by pressing ENTER button it is not responding (the dialog box is not closing), the reason is obvious that since i am handling the PreTranslateMessage() it is not responding, but i also want the dialog to be closed when i hit the Enter button after highlighting the Cancel button, how can i accomplish this?? OR is there any other way to handle the RETURN key validation stuff than using PreTranslateMessage(), so that the Cancel button's original behaviour is not lost. Please Help!!!

    thanx in advance kumar

    C / C++ / MFC help question database

  • edit control
    K kumar_mk

    hi mike thnkx, pls tell me whether i can handle 2 different messages for the same edit control

    thanx in advance kumar_windows

    C / C++ / MFC help tutorial question

  • edit control
    K kumar_mk

    I would like to know whether the same Edit Control can handle two types of notification messages, like my requirement is i have an edit control in my dialog box which takes the ID of an voucher, now i have to fill this edit control by two ways 1st> is to manually enter the Voucher ID and press ENTER key (in the keyboard) for the Validation to take place, for this i can handle PreTranslateMessage, VK_RETURN . 2nd> is to scan the Voucher with the Barcode Reader, after scanning, my edit control is populated with the Voucher ID and the validation should happen without entering any Key or doing any action, for this case i can handle ON_EN_CHANGE . my problem is in the 1st case when i enter the 12 digit voucher ID (remember i did not press the ENTER key), the validation is done, since i am also handling the ON_EN_CHANGE message for supporting the 2nd case. how to handle both these cases for the same EDIT control?? thanx in advance kumar_windows

    C / C++ / MFC help tutorial question

  • edit control
    K kumar_mk

    I have an Edit control in my dialog box that takes a 10 digit number, now my requirement is after entering the number in the control, i will hit the return (enter) button in the keyboard for some validation to take place. remember only with the pressing of the enter key in my keyboard, the validation should take place, i have tried handling the ON_EN_KILLFOCUS and ON_EN_CHANGE notification messages but in vain!!! i have also tried enabling the Want Return style of the edit button but still i am not able to achieve the task, pls help?? thanx in advance kumar_windows

    C / C++ / MFC help question

  • multiple selection list box
    K kumar_mk

    i can use CListBox, from scratch is not required

    thanx in advance kumar_windows

    C / C++ / MFC question

  • multiple selection list box
    K kumar_mk

    i need to implement a list box which supports selection of multiple items in the list at a time, instead of a single item, also i should be able to select the items in the listbox by using ctrl+click or shift+click windows functionality. how can i do this?? any link or sample code available?? thanx in advance kumar_windows

    C / C++ / MFC question

  • marshalling
    K kumar_mk

    asked in an interview--- what is marshalling in c++, pls give me a small code example. thanx in advance kumar_windows

    C / C++ / MFC c++ tutorial question career

  • controlling the creation of objects
    K kumar_mk

    dear members, Is there any way i can control the creation of the objects for a class, like for example we have a singleton class for which we can create only a single instance, likewise i wanna limit the creation of objects say only 2 objects for a class or only 3 object for the class please give a small code example if possible. thank u in advance kumar_windows

    C / C++ / MFC tutorial

  • Resize of image
    K kumar_mk

    I have a picture control(static control) on my dialog box. then iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control. Please do explain with example? Thanks in advance, Regards Kumar_Windows

    C / C++ / MFC tutorial question

  • deep/ shallow copy
    K kumar_mk

    please give detailed differences between deep copy and shallow copy (also in terms of memory allocation)? which ( userdefined or default copy --- constructor/ overloaded assignment operator) performs what ( deep/ shallow copy)? thanx in advance kumar_windows

    C / C++ / MFC performance question

  • change colors of controls
    K kumar_mk

    asked in an interview ---> 1. Can u change the color of menu bar? 2.How can u change the color of the dialog box initially and what is the function used for changing? 3. How can u change the color of a Button and edit box? please specify steps in the above cases, if you have a sample code it would be great!!! thanx in advance kumar_windows

    C / C++ / MFC question career

  • constructor related questions
    K kumar_mk

    was asked in an interview ---> 1. If the default constructor fails what happens? 2. What is Conversion constructor? Please give a small code example. 3. Why there is no virtual constructor? thanx in advance kumar_windows

    C / C++ / MFC question tutorial career

  • FAQ for an interview in Multithreading/C++
    K kumar_mk

    15.Types of threads? A.) There are 2 types of threads they are 1.) Worker threads (doesn’t have a message pump) —-> usually used for background processing like searching etc. 2.User Interface Thread(which has a message pump)  can be used to create windows. 16.Is it possible to share the thread stack memory to another threadNO 17.Types of Syncronization Classes? A.) CMutex, CSemaphore, CCriticalSection, CEvent 7.What is Serialization? Which macro is to be specified in the user-defined class, which will take part in serialization? A.) Serialization is the process of writing or reading the contents of an object to and from a file. Include the macros DECLARE_SERIAL in the .h file IMPLEMENT_SERIAL in the .cpp file 7. What are the parameters passed for IsLoading() and IsStoring() functions? A.) No parameters are passed to both the functions. 6. What do u mean by the third parameter in IMPLEMENT_SERIALIZE? A.) IMPLEMENT_SERIAL(class_name, base_class_name, wSchema); The 3rd parameter is wSchema  A UINT “version number” that will be encoded in the archive to enable a deserializing program to identify and handle data created by earlier program versions. The class schema number must not be –1. • Base class of all the threads --> CWinThread regards kumar_windows

    C / C++ / MFC c++ career

  • what is a static class
    K kumar_mk

    hi alok, no not a singleton class, it was an interview question abt the static class, do we have it just like a static member variable and static function, wat is its significance/purpose?? can i create an object for this static class?? wat happens? thank u, kk

    C / C++ / MFC c++ question

  • what is a static class
    K kumar_mk

    hello cedric, it was an interview question, u mean to say i can declare a class as static like static class A{----}; what is its purpose, please elaborate on single instance of a class, u mean when i create an object for this class thanks kk

    C / C++ / MFC c++ question

  • what is a static class
    K kumar_mk

    hello toxcct, it was asked to me in an interview, u r saying we have a static class , like static class A{ ----- }; and if i create an object for it what happens??? kk

    C / C++ / MFC c++ question

  • storage for reference variable
    K kumar_mk

    no memory is allocated to a reference variable. not in stack nor in heap.

    C / C++ / MFC data-structures performance question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups