Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to know if a file is opened for writing by another application Pin
hatemtaleb12-Oct-08 23:24
hatemtaleb12-Oct-08 23:24 
AnswerRe: How to know if a file is opened for writing by another application Pin
sashoalm13-Oct-08 2:13
sashoalm13-Oct-08 2:13 
AnswerRe: How to know if a file is opened for writing by another application Pin
Hamid_RT13-Oct-08 7:59
Hamid_RT13-Oct-08 7:59 
AnswerRe: How to know if a file is opened for writing by another application Pin
Iain Clarke, Warrior Programmer13-Oct-08 18:03
Iain Clarke, Warrior Programmer13-Oct-08 18:03 
QuestionSet Dialog Pin
Davitor12-Oct-08 23:18
Davitor12-Oct-08 23:18 
AnswerRe: Set Dialog Pin
David Crow13-Oct-08 3:29
David Crow13-Oct-08 3:29 
AnswerRe: Set Dialog Pin
Hamid_RT13-Oct-08 7:57
Hamid_RT13-Oct-08 7:57 
QuestionModal, Modeless Dialog Box Problem Pin
Dhiraj kumar Saini12-Oct-08 21:55
Dhiraj kumar Saini12-Oct-08 21:55 
Hello,

I am having a child dialog as my current window. On top of it i open a new dialog with 2 buttons. Now what i want is that the user should not be able to work on any other dialog box or application until and unless he clicks one of the two buutons of the topmost dialog box.

This is the declaration of it rc file

IDD_ACCEPT_REFUSE_DLG DIALOGEX 0, 0, 233, 46
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Live2Support"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CTEXT           "",IDC_STATIC_MSG,8,5,223,10
    PUSHBUTTON      "Accept",IDC_ACCEPT,56,31,59,15
    PUSHBUTTON      "Deny",IDC_DENY,118,31,59,15
END


and this is how i am creating and showing the topmost dialog box.

CAcceptRefuse* ptrAcceptRefuse = new CAcceptRefuse(this,_T(""),k,stOperatorDetails.strOpSessionId,stOperatorDetails.strOpName,m_strSiteID);
							ptrAcceptRefuse->Create(IDD_ACCEPT_REFUSE_DLG,this);
							ptrAcceptRefuse->ShowWindow(SW_SHOW);


Please Help Me

Thanks In Advance
AnswerRe: Modal, Modeless Dialog Box Problem Pin
Cedric Moonen12-Oct-08 21:57
Cedric Moonen12-Oct-08 21:57 
GeneralRe: Modal, Modeless Dialog Box Problem Pin
Dhiraj kumar Saini12-Oct-08 22:34
Dhiraj kumar Saini12-Oct-08 22:34 
GeneralRe: Modal, Modeless Dialog Box Problem Pin
Cedric Moonen12-Oct-08 23:15
Cedric Moonen12-Oct-08 23:15 
AnswerRe: Modal, Modeless Dialog Box Problem Pin
_AnsHUMAN_ 12-Oct-08 21:59
_AnsHUMAN_ 12-Oct-08 21:59 
AnswerRe: Modal, Modeless Dialog Box Problem Pin
SandipG 12-Oct-08 22:45
SandipG 12-Oct-08 22:45 
QuestionDDX control type variable in a dialogbar Pin
ilgale12-Oct-08 21:35
ilgale12-Oct-08 21:35 
Questionwant to take hex dump of a string. How ? Pin
Sakthiu12-Oct-08 21:25
Sakthiu12-Oct-08 21:25 
AnswerRe: want to take hex dump of a string. How ? Pin
CPallini12-Oct-08 21:30
mveCPallini12-Oct-08 21:30 
AnswerRe: want to take hex dump of a string. How ? Pin
enhzflep12-Oct-08 21:35
enhzflep12-Oct-08 21:35 
GeneralRe: want to take hex dump of a string. How ? Pin
Sakthiu12-Oct-08 22:02
Sakthiu12-Oct-08 22:02 
GeneralRe: want to take hex dump of a string. How ? Pin
CPallini12-Oct-08 22:26
mveCPallini12-Oct-08 22:26 
Questionwhich should use pipe or socket at Client-server Pin
singh_nav12-Oct-08 19:36
singh_nav12-Oct-08 19:36 
AnswerRe: which should use pipe or socket at Client-server Pin
kcynic12-Oct-08 19:59
kcynic12-Oct-08 19:59 
AnswerRe: which should use pipe or socket at Client-server Pin
Parthiban12-Oct-08 20:31
Parthiban12-Oct-08 20:31 
AnswerRe: which should use pipe or socket at Client-server Pin
SandipG 12-Oct-08 20:37
SandipG 12-Oct-08 20:37 
GeneralRe: which should use pipe or socket at Client-server Pin
singh_nav13-Oct-08 19:20
singh_nav13-Oct-08 19:20 
GeneralRe: which should use pipe or socket at Client-server Pin
SandipG 13-Oct-08 21:30
SandipG 13-Oct-08 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.