# Customized UI not Displaying Correctly in Windows SDK Demo

**URL:** <https://devforum.zoom.us/t/customized-ui-not-displaying-correctly-in-windows-sdk-demo/88616>\
**Category:** Windows\
**Created:** [May 18, 2023, 10:18am UTC](https://devforum.zoom.us/t/customized-ui-not-displaying-correctly-in-windows-sdk-demo/88616 "2023-05-18T10:18:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darren.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/darren.yang/32/47239_2.png) [@darren.yang](https://devforum.zoom.us/u/darren.yang)\
**Post date:** [May 18, 2023, 10:18am UTC](https://devforum.zoom.us/t/customized-ui-not-displaying-correctly-in-windows-sdk-demo/88616/1 "2023-05-18T10:18:35Z")

</div>

**Description**  
When using the official demo for Windows SDK and selecting the “customized UI mode”, the “GalleryView” UI does not display correctly when joining a meeting using “Only Join”. Upon debugging, it was found that the `HandleInMeeting` function was not being called due to `MEETING_STATUS_INMEETING` not triggering a callback. To address this, I modified the `ShowPreview()` function under `MEETING_STATUS_CONNECTING` to call `HandleInMeeting()` instead, which allowed the toolbar to display correctly. However, clicking the “Show Gallery” button resulted in the “GalleryView” still not displaying and an error message of `SDKERR_SERVICE_FAILED` being displayed.  
I would appreciate assistance in identifying the cause of this issue. Thank you.

**Which Windows Meeting SDK version?**  
zoom-sdk-windows-5.14.5.15340

**Code**

```auto
void CCustomizeInMeetingUIMgr::onMeetingStatusChanged(ZOOM_SDK_NAMESPACE::MeetingStatus status, int iResult /*= 0*/)
{
	char buffer[1024] = { 0 };
	sprintf_s(buffer, 1024, "onMeetingStatusChanged CCustomizeInMeetingUIMgr: status:%d, iResult:%d\n", status, iResult);
	OutputDebugStringA(buffer);
	switch (status)
	{
	case ZOOM_SDK_NAMESPACE::MEETING_STATUS_CONNECTING:
		{
			if (!m_bUIIsReady)
				Start();
                        // I modified this
			/*ShowPreview();*/
			HandleInMeeting();
		}
		break;
	case ZOOM_SDK_NAMESPACE::MEETING_STATUS_RECONNECTING:
	case ZOOM_SDK_NAMESPACE::MEETING_STATUS_DISCONNECTING:
	case ZOOM_SDK_NAMESPACE::MEETING_STATUS_ENDED:
	case ZOOM_SDK_NAMESPACE::MEETING_STATUS_FAILED:
		{
			if (m_bUIIsReady)
			{
				Stop();
			}

			if (status == ZOOM_SDK_NAMESPACE::MEETING_STATUS_RECONNECTING)
			{
				m_customUIWorkFlow.Init(this);
			}
		}
		break;
	case ZOOM_SDK_NAMESPACE::MEETING_STATUS_INMEETING:
		{
                       // won't call this
			HandleInMeeting();
		}
		break;
	case ZOOM_SDK_NAMESPACE::MEETING_STATUS_IN_WAITING_ROOM:
		HandleMoveToWaitingRoom();
		break;
	default:
		break;
	}
}

```

**Device:**

- OS: Windows 10
- IDE: VS2022 Release x64

---

<div class="post-metadata">

**Author:** ![darren.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/darren.yang/32/47239_2.png) [@darren.yang](https://devforum.zoom.us/u/darren.yang)\
**Post date:** [May 26, 2023, 8:08am UTC](https://devforum.zoom.us/t/customized-ui-not-displaying-correctly-in-windows-sdk-demo/88616/2 "2023-05-26T08:08:10Z")

</div>

![屏幕截图 2023-05-18 175330](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/6/d60c989fca63f02296690aaeb4e0e5d015a610a2.png)  
 ![屏幕截图 2023-05-18 175435](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/4/b4d6722a6cbf931f0351ca52af5bad5e2b048397.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 25, 2023, 6:08pm UTC](https://devforum.zoom.us/t/customized-ui-not-displaying-correctly-in-windows-sdk-demo/88616/3 "2023-06-25T18:08:14Z")

</div>

Closed on June 25, 2023, 6:08pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
