Try subclassing.. The below link may help: Create your own controls - the art of subclassing[^] cheerio!
namaskaaram
Posts
-
Change Button Image on mouse over -
how do i know the number of messages left unprocessed in a message queue?I am just reusing the message queue provided by windows. I have a message handler thread which at some point need to flush out the message queue. I didnt seem to find any win apis for the same.
-
how do i know the number of messages left unprocessed in a message queue?how do i know the number of messages left unprocessed in a message queue?
-
Image List Inhancement neededhello vinod. try searching cp....i believe there are many thumbnail viewer applications using listctrl.. see here! http://www.codeproject.com/info/search.aspx?artkw=thumbnail+view[^]
-
fread error in Console applicationThis is just a wild guess, try opening the file in "r+b" mode... when the file is opened in text mode,there is possibility for the file to stop at ascii values like 26.... Hope this helps!
-
problem with dialog background colordo comment or call the CDialog::OnEraseBkgnd( pDC ) first, before putting in your paint code
-
problem with dialog background colorSeems like a paint issue. Try overriding the OnEraseBkgnd() function.Write the code to put color on the screen there. Hope this works out for you.(never tried this though...) cheers! PS:do comment or call the CDialog::OnEraseBkgnd( pDC ) first before putting in your paint code
modified on Tuesday, May 13, 2008 12:39 AM
-
Is there any method to check for a valid hwnd from an another thread?Apart the api "IsWndow" which the microsoft doesnt recommend to be used other than by the thread which had created the window,is there any method to check for a valid hwnd i.e from an another thread?
dont want,dont want thinking,climbing on head and jumping grass! (venda venda ennu vicharikumbol thellayill keyaree chadunnoda pulle!)
-
can hdc be passed between processes?can hdc be passed between processes?
dont want,dont want thinking,climbing on head and jumping grass! (venda venda ennu vicharikumbol thellayill keyaree chadunnoda pulle!)
-
CStringu mean memory fragmentation??....i think thatz a know issue rt?? anywayz check here for more info on that : http://support.microsoft.com/kb/q139638/[^]
-
CStringhey naveen!... hahha!...what a coincidence!...neeyum codeprojectil!! cheerz!
-
CString:)haha, now now why should i possibly hide myself.....i am no shy type u know ;) FYI : 'namaaskaaram' is a malayalam word which has teh same meaning as that of "bonjour" in french. ;o)
-
CStringI have read that heavy using 'new' and 'delete' operators frequently could lead to memory fragmentation in the heap and hence whereever possible limit to using variables declared in the stack..... So herez my question with regards to memory fragmentation in the heap: Does this imply with CString as well???... or does windows handle this using 'placement new' ??
-
Convert CString to const char * in embedded VC++I fu running in UNICODE, the CString converts all data assigned to it to UNICODE. use 'W2A' macro to convert UNICODE to ASCII.. i hope that helps u out! ;o)
-
which is better and why???actually i meant assignment operator overloading....sorry abt the typo!:doh: ;o) thank u all!!!! :)
-
which is better and why???consider a class Class C { private: int a; int b; }; then i write a copy constructor. i believe copy constructor can be written in two wayz: C& C::operator=(const C&); void C::operator=(const C&); In the former case, we deference by returning this* and the latter we dont return anything, so here is my question: which one of the above is better??(in terms of efficiency)
-
using delete operatorr u sure cedric?..coz i have got a contradictory answer from an above post! ...hmm... actually i did debug!....didnt find any probz1...but i just aint quite sure if itz ok or not!.... hmmm.. :confused: -- modified at 7:43 Tuesday 13th June, 2006
-
using delete operatorfinally! ...hehe..just kidding! ;) nice answer bro!.... cheerz!
-
using delete operatorwell just want to know if its handled by the delete operator !!!.. just inquisitive! ;)
-
Release and debug modeu can debug in release mode!... just a matter of changing the settings....just check teh Generate debug info flag!....