18 Oct
Posted by support as Win32/MFC 234 views, 0 Comments
A Solution which contents 3 projects and below are the names & their character set encoding type
1. Utility – > MBCS 2. Calculations -> MBCS 3. User Interface -> Unicode ( Earlier It used to be MBCS)
WhenChanged the Character set encoding for User Interface and compiled [...]
18 Oct
Posted by support as General 213 views, 0 Comments
How to set the head backgroud color of CPropertyPage?
In the DrawItem function the TextOut position is pretty half-hearted, and looks a bit better (to my eyes) if you do it something like this instead.
void CMyTabCtrl::DrawItem(LPDRAWITEMSTRUCT lpDIS)
{
CDC* pDC = CDC::FromHandle(lpDIS->hDC);
[...]
18 Oct
Posted by support as General 766 views, 0 Comments
How to set the backgroud color of CPropertyPage?
If you override OnCtlColor in your property page, then you can return a different background color and that seems to work with CStatic and other items.
But what if you want is a background that’s not just a simple color? You’d like to be able to draw a background [...]
18 Oct
Posted by support as General 2,958 views, 0 Comments
Use CListCtrl::SetItemState with LVIS_SELECTED
Pedro Ferreira
I’m trying to create a UI thread to do constant background work, but I’m having some design problems.
The thread needs to fetch records from a database. do some processing on each record and, when there are no more records, sleep for 1 minute before check the database again. The process will be controlled [...]
Pedro Ferreira said:
I’m trying to create a UI thread to do constant background work, but I’m having some design problems.
The thread needs to fetch records from a database. do some processing on each record and, when there are no more records, sleep for 1 minute before check the database again. The process will be controlled [...]