Hi, I develop an application by visual studio 2005, programming language C#, and doesn't used any other style tools. After used my application, my friend give me his opinion that I shouldn't use office 2003 menu because it doesn't suite with GUI. he said I should use native vista menu. I think it's good idea so I want to change style menu, but In visual studio 2005, (menu option) Render Mode have 3 options: System, Programming, ManagerRenderMode. I found out that Microsoft support a class VisualStyleElement but I don't know how to used it! I wish some one can show me how to use VisualStyleElement class. I took a look at some sample in MSDN website but I didn't clearly understand. Thanks
KienNT78
Posts
-
Native XP/Vista Menu -
char * to String^textBox->Text = gcnew String(szData);
Yeah, This way I realy like. Can you introduce more about this. How can you find out this way? Do you have any tips for this kind? Sorry, my English very bad. -
char * to String^Hi all, I got a small trouble, If some one know how to do please tell me, many thanks. I want to assign szData value into textBox->Text, but two kind of variable different type. I used Visual Studio 2005, and developed VC++ language.
private: System::Windows::Forms::TextBox^ textBox; private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { char* szData = "abcabcabcabc"; textBox->Text = //Content of szData variable. }
-
char* to String^Hi all, I got a small trouble, If some one know how to do please tell me, many thanks. I want to assign szData value into textBox->Text, but two kind of variable different type. I used Visual Studio 2005, and deverloped VC++ language.
private: System::Windows::Forms::TextBox^ textBox; private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { char* szData = "abcabcabcabc"; textBox->Text = //Content of szData variable. }
-
A Fast Bresenham Type Algorithm For Drawing EllipseThanks you for your advice. by the way, Can you give me an other algorithm that you think it's suit to solve my trouble? ;)
-
A Fast Bresenham Type Algorithm For Drawing EllipseI read "A Fast Bresenham Type Algorithm For Drawing Ellipse" by John Kennedy Mathematics Department. Below function was developed base on above algorithm. I want to ask someone help me, how can develop below function to rotate ellipse. If someone have an other ideals, can you help me!
void CBGraphics::DrawEllipse(HDC hDC, int x1, int y1, int x2, int y2, COLORREF color) { long x, y, XChange, YChange, EllipseError, TwoASquare, TwoBSquare, StoppingX, StoppingY; TwoASquare = 2 * x2 * x2; TwoBSquare = 2 * y2 * y2; x = x2; y = 0; XChange = y2 * y2 * (1 - 2 * x2); YChange = x2 * x2; EllipseError = 0; StoppingX = TwoBSquare * x2; StoppingY = 0; while( StoppingX >= StoppingY) { Put4Pixel(hDC, x1, y1, x, y, color); y++; StoppingY += TwoASquare; EllipseError += YChange; YChange += TwoASquare; if( ( 2 * EllipseError + XChange) > 0 ) { x--; StoppingX -= TwoBSquare; EllipseError += XChange; XChange += TwoBSquare; } } x = 0; y = y2; XChange = y2 * y2; YChange = x2 * x2 * (1 - 2 * y2); EllipseError = 0; StoppingX = 0; StoppingY = TwoASquare * y2; while (StoppingX <= StoppingY) { Put4Pixel(hDC, x1, y1, x, y, color); x++; StoppingX += TwoBSquare; EllipseError += XChange; XChange += TwoBSquare; if( (2 * EllipseError + YChange) > 0) { y--; StoppingY -= TwoASquare; EllipseError += YChange; YChange += TwoASquare; } } }
-
Help me! Rotate algorithmThanks indeed, I just asked for algorithm, because I want to study algorithm working with rotate image! I want to learn algorithm that independent with code. If you know which book can help about algorithms, please give me book's name
-
Help me! Rotate algorithmHi all, I got a big trouble in rotate algorithm in my project. please see all pictures As you see my first picture that I copied from my project. Note that, background picture mustn’t effect when I drag mouse, but grid lines have to be effected when I drag mouse around center point, so when I drag mouse, grid lines must go around center point until I stop drag and release mouse. My trouble is when I drag mouse around center point (yellow triangle) and when angle reach greater than angle 90 (similar picture 2) then I can not reach angle 180 or greater, if I still keep drag mouse till angle 180 then yellow triangle turn back and point to number of about angle 340 (similar picture 3) so when angle greater than angle 90 I have to release mouse then drag mouse again => it’s not good. Please tell me how to solve this trouble. Thank you so much. I’m sorry, My English is not good!
-
GDI & Image ProcessingDear all, I design a chart view to show like in the link below: http://www.photoupload.org/image/3798.jpeg My solution is used an array that hold all points and used MoveTo() and LineTo() funtions to draw. But I need line is more smooth than now and I want to ask about solution to do I try to study http://www.codeproject.com/gdi/CTGraphics.asp but I didn't understand much! Thanks
-
How to print a file which got images, table, text an so onDear All, I'm designing a tool which can open a document and print out that document to default printer. My tool can only print out text file, I want it can be integrate other document files. Can you tell me how to do so, and where can I refer to? I'm using Visual Studio V6.0 and Program language C/C++, MFC