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

Search:

Type: Posts; User: Beginner_MFC

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Changing background Color of CBS_DROPDOWN CCombobox

    Able to load and open dialog . But background color is not reflected. I placed the breakpoint at OnChildNotify() but it is not called. I check DDX mapping ,there memory is allocated to MyCComboBox...
  2. Re: Changing background Color of CBS_DROPDOWN CCombobox

    Yes i debugged. OnInitDialog() is not called. From where it is supposed to called there dlg.DoModal() is returning -1
  3. Re: Changing background Color of CBS_DROPDOWN CCombobox

    Anyone please suggest?
  4. Re: Changing background Color of CBS_DROPDOWN CCombobox

    I tried below code
    // MyComboBox.h




    #if !defined(AFX_MYCOMBOBOX_H__6C1728B4_F098_408B_919A_A8DA393AA426__INCLUDED_)

    #define...
  5. Changing background Color of CBS_DROPDOWN CCombobox

    Any idea how to quickly change background color of CBS_DROPDOWNLIST CComboBox to white. since CBS_DROPDOWN has white background, i also want CBS_DROPDOWNLIST to have white background.
  6. Replies
    7
    Views
    1,234

    Re: FLAT CEdit(EditBox)

    [Resolved]. I was missing #include afxdisp.h and #include sdkddkver.h in STDAFX.H
  7. Replies
    7
    Views
    1,234

    Re: FLAT CEdit(EditBox)

    Inspite of targerver.h i simply added sdkddkver.h .code compiled successfully but still no flat style achieved. I compared .rc, .h with the newly created mfc application dialog all seems fine......
  8. Replies
    7
    Views
    1,234

    Re: FLAT CEdit(EditBox)

    Victor i tried create new MFC application to check actual issue. When i created new MFC application(project) and a simple dialog in it through resource editor .i found that after compilation i find...
  9. Replies
    7
    Views
    1,234

    [RESOLVED] FLAT CEdit(EditBox)

    Just a quick question. I am able to achieve flat editbox through CreateEx already discussed in previous thread.But question here again is why i am not able to achieve it resource editor although...
  10. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    Passing right parameters to CRect (left, top,right,bottom) resolved it. Width = right - left , Height = bottom- top.
  11. Re: Coloring Rect of Create(lpszText,dwstyle,&rect,parentwnd,nID) white

    Yes i solved editbox problem by passing correct parameters in CRect()
  12. Coloring Rect of Create(lpszText,dwstyle,&rect,parentwnd,nID) white

    I have below code



    CStatic *text = new CStaic ;
    CRect textrect(10,20,70,50);
    MapDialogRect(&tectrect);

    text -> Create(name.data(),WS_CHILD | WS_VISIBLE | SS_RIGHT,textrect,this);
  13. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    Visual studio 2015..I have turned client edge off
  14. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    If u will use the resource editor ,than edit box will look fine there but as soon as you will compile and see dialog on screen than sunken raised rdge(WS_EX_CLIENTEDGE) will be seen in CEdit.thats...
  15. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    CRect is taking (int l, int t, int r , int b).. from resource editor how can i do CreareEx()?
  16. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    Hitting my trials since last 1 day, but not able to see CEdit on Screen. Below is the code of .rc file


    IDD_DIALOG_M 0,0,283,277
    STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION |...
  17. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    I read but getting no clue how to fix that.if i am able to see it anywhere on the dialog than atleast i will move it where i want .. within OnInitDialog() i wrote CRect temp; GetWindowRect(&temp);...
  18. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    CreateEx is returning true..I have wrote this code inside OnInitDialog() function. Does any effect of it ..Any specific message handler to be used ?
  19. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    Yes Victor it is within the parent
  20. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    I used the below code for creating CEdit dynamically, code compiled but editbox is not visible on screen.


    CEdit *tedit = new CEdit;
    tedit->CreateEx(WS_EX_CLIENTEDGE , L"Edit", L" ",...
  21. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    Hi GCDEF i used the resource editor and set the border to false which resulted in loss of boundaries of box , i also set client edge as false from there but no effect. As told i want the second box...
  22. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    Means with no flags or functions i can achive second edit box. I have to use CreatEx for that?
  23. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    35837

    I have above one and i want below one.
  24. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    When i used NOT WS_BORDER in .rc than it removed the entire boundaries from CEdit means box with no surroundings ..Any idea why, NOT WS_EX_CLIENTEDGE not working? My basic is issue is to remove that...
  25. Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog

    I used NOT WS_EX_CLIENTEDGE in .rc to remove the sunked edge from CEdit(EDITTEXT) but it is still showing Sunked/raised edge from left and topside?
Results 1 to 25 of 85
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)