Hello all, I have a CDialog derived class that is set as Child, no border, no title bar, no menu. I am using this dialog as a child in another dialog. BUT, I would like to use this child dialog as a MODAL dialog. If I use this code : { CDlgEcu locDlgEcu; if( locDlgEcu.DoModal() == IDOK ){ // ADD DATA TO LIST } } then I can see only some controls from this dialog and dont see dialog backgroud, title bar, border ... if I try to use ModifyStyle so this function set some of flags but not all that I need .... this code dont work: ModifyStyle( (~0x00), WS_POPUP|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CAPTION|(WS_SYSMENU|WS_THICKFRAME) ); ModifyStyleEx( (~0x00), WS_EX_CONTROLPARENT|WS_EX_WINDOWEDGE); Does anybody have ANY advice, please? thnx. xSoptik
xSoptik
Posts
-
Modal vs Child CDialog style. BIG PROBLEM -
New build configuration ????:) Thanx In VC7 there is a little different situation. That choose is hidden in popup menu.
-
New build configuration ????Hello all, can anyone tell me how I can add new build configuration?? In new project are two conf. Debug and Release. I would like add Debug Unicode, Release Unicode .... But there in no choise to do this .... :) please help me :) Thanx xSoptik
-
CAsyncSocketHello all, I have CAsyncSocket class I have rewritten the virtual member function OnReceive: void CCommunication::OnReceive( int nErrorCode ) { if( nErrorCode == WSAENETDOWN ){ ASSERT( 0 ); return; } // do my useful task // parent CAsyncSocket::OnReceive( nErrorCode ); } This clas is used in main dialog window. Sometimes I am loosing packets ... Why? All packets are on the ethernet but I dont receive some of them. For example: There are 4 packets on the ETH but I receive only first three. This happens about three seconds after application start on Cel.900MHz@256MbRAM, and when I drag the main window by the title bar on the SempronMobile 3000+@704MbRAM The application is MFC dialog based. The communication is UDP. Thank you for any suggestion ... xSoptik
-
Window sizing by actual string and fontHello all, I would like to change window size by the actual string size. The string size deplend on the actual font. I am not able to get actual string lenght in pixels ... Do you now any function that returns actual string length in pixels? thank you for any advice
-
Messages and WindowsThe messages are not WM_USER but they are RegisterWindowMessage(s). Yes, when I drag window by the title bar there hapanned something and my registered message dont swim up in the main window WindowProc handler. This is happaned even if I only press left mouse button on the title bar. Why? Why? Why?
-
What is #pragma pack()?Ok. I understand now. Thank you a lot. xSoptik
-
What is #pragma pack()?Hello all. Can someone tell me in simple way what happen when I use preprocessor option #pragma pack ? I tryed it but I thing there is no effect. Can you tell me what exactly happen? Thank you a lot.
// sample code #pragma pack(1) // turn byte alignment on ????? enum mENUM { // an enum }; struct p_mStruct { UINT m_Ui; // and so on }; #pragma pack() // turn byte alignment off ?????
Jaja Paja