September 7th, 2010, 05:39 AM
Thank you for your time answering me :)
September 6th, 2010, 09:50 AM
I'm confused about the following words:
__declspec(dllexport) / __declspec(dllimport)
I only realized that extern "C" preceding a function create a decoration-free...
August 4th, 2010, 09:19 PM
You won't believe me but I solved it creating a CStatic subclass for the control we were talking.
Just adding the code for the ownerdraw method (empty and unused), solves the assertion. This isn't...
August 4th, 2010, 05:07 AM
You're right that the else code is never executed.
But seems like you cannot modify into "==" because the code gets executed only when a WM_OWNERDRAW control needs redraw. Since my dialog has...
July 18th, 2010, 09:45 AM
If you have still troubles, see here: http://www.codeguru.com/cpp/controls/controls/article.php/c5227
This still works for me.
July 18th, 2010, 09:43 AM
Problem solved, excuse me.
I solved putting a simple "else" in this position:
void CDialog1 ::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
July 18th, 2010, 09:13 AM
I have a picturebox control with OwnerDraw set to true.
In the CDialog1 class I wrote code to draw onto it in the function
void CDialog1 ::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT...
July 17th, 2010, 02:16 PM
July 16th, 2010, 02:59 PM
You are right. Any tome to suggest?
July 16th, 2010, 11:16 AM
Something more theoric for the abc? The code isn't extensively commented as I expected
July 16th, 2010, 10:24 AM
Ok I cannot continue to bother you with my questions about how drawing into a picture box with OwnerDraw set if I really can't figure out what CDC is, what HDC stands for or why BitBlt wants a CDC...
July 16th, 2010, 07:41 AM
It's not working, I did something wrong.
I used this code:
m_thread= new CUIThread();
July 16th, 2010, 04:21 AM
Class A -> need to perform about 30 cycles. Every one of these cycles should be shown at the user as soon as it completes in a window with a graph (don't mind how this graph gets...
July 15th, 2010, 07:54 AM
I was silly, there's a swap function ready-for-use.
Thank you however
July 15th, 2010, 04:22 AM
I'm trying to swap two columns of a ublas matrix like
matrix <double> m_mat(2,2);
but since they are row-major I can't find a solution (excepted for an ugly cycle)
Do you have any other...