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
A

aragornx

@aragornx
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to make topmost control on dialog? [modified]
    A aragornx

    sorry - but it's not working: picture two first - wndTopMost, third - wndTop - still no solution :( some code from my control (derived form CEdit): lista - derived from (CListBox): lista.Create( WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_HSCROLL|LBS_NOTIFY, CRect( rect.left, rect.bottom, rect.right,rect.bottom+100), parentWindow, IDC_LISTBOX ); lista.SetWindowPos( &CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);

    C / C++ / MFC help tutorial question

  • How to make topmost control on dialog? [modified]
    A aragornx

    Hi I'm creating my own control. I dynamically creating CListBox over the other controls - it's my combo list control. My problem is that controls from behind my CListBox (eg. CEdit controls) getting to front. It disturbs everything. I tried to use myList.SetWindowPos( &CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE ) - but it's not working. Is there any way to make control topmost (something like modal dialog) over other controls. Plaese help...

    modified on Tuesday, December 9, 2008 7:17 AM

    C / C++ / MFC help tutorial question

  • Blinking effect in Cwnd child window
    A aragornx

    It didn't help... The unwanted effect is that the background window(parent) is in one moment drawn over the child window...

    C / C++ / MFC help graphics question

  • Blinking effect in Cwnd child window
    A aragornx

    Hello I've got problem with blinking window. My application is multi-doc one. One of my view is simple CView with drawing code in OnPaint. This view is repainting every second (when new data is arriving). From this view I'm creating new window which is a child to my current view's frame. Class of this "child" window is inherited by CWnd class. Unfortunately whan my CView is repainting the top window (child window) is blinking. I've used double-buffering technique - and nothing - still the same problem. Here is my code's samples: 1. Making window: void CBigValueEdit::setVisible( bool b ) { if ( b == true ) { if (this->Create( NULL, _T("Test;"), WS_CHILDWINDOW | WS_VISIBLE | WS_BORDER | WS_CAPTION , rect, parent, IDW_BIG_VALUE ) != 0 ) { this->ShowWindow( SW_SHOW ); this->SetFocus(); visible = true; calcRects(); setDigitVal(); } } else { // wyłącz okienko visible = false; this->ShowWindow( SW_HIDE ); this->DestroyWindow(); } } 2. Double-buffering: if ( bmpCreated == false ) { bmpBufor.CreateCompatibleBitmap( dc, rect.Width(), rect.Height() ); vdc.CreateCompatibleDC( dc ); vdc.SelectObject( bmpBufor ); bmpCreated = true; } [...] dc->BitBlt( 0, 0, rect.Width(), rect.Height(), &vdc, 0, 0, SRCCOPY ); 3. Making window from main CView class: ed.setTitle("Set high alarm :"); ed.setRectangle( rect ); ed.setFormat(4,2); ed.setValue( selectedCounter->getAlarmLowValue() ); ed.setVisible( true ); ed - my class inherited by CWnd... What;s wrong Where's the catch? Please - help me... -=AragornX=-

    C / C++ / MFC help graphics 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